aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-15 06:17:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-15 06:17:29 +0000
commit91f34bd1e55a9a1bca7340edd7a2e3233df92911 (patch)
treec1fafb35f465f4adc4ed157b27a87fa468f589da
parent73d21681415a5d17c2347264cfd3ab43894f3cbc (diff)
downloadruby-91f34bd1e55a9a1bca7340edd7a2e3233df92911.tar.gz
refer flag variables regardless RUBY_DEBUG_ENV
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--localeinit.c4
-rw-r--r--signal.c3
2 files changed, 1 insertions, 6 deletions
diff --git a/localeinit.c b/localeinit.c
index fa9cc26b8e..1e1fd4fb29 100644
--- a/localeinit.c
+++ b/localeinit.c
@@ -23,10 +23,8 @@
#define CP_FORMAT(buf, codepage) snprintf(buf, sizeof(buf), "CP%u", (codepage))
#endif
-#if defined _WIN32 && defined RUBY_DEBUG_ENV
+#if defined _WIN32
extern UINT ruby_w32_codepage;
-#else
-enum {ruby_w32_codepage = 0};
#endif
#ifndef NO_LOCALE_CHARMAP
diff --git a/signal.c b/signal.c
index e4f04d101a..8ee0963b8a 100644
--- a/signal.c
+++ b/signal.c
@@ -1435,9 +1435,6 @@ ruby_sig_finalize(void)
int ruby_enable_coredump = 0;
-#ifndef RUBY_DEBUG_ENV
-#define ruby_enable_coredump 0
-#endif
/*
* Many operating systems allow signals to be sent to running