aboutsummaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-16 00:15:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-16 00:15:54 +0000
commit8818677822a06639139f41f6c4657016dd008938 (patch)
tree3a89751e0341128b789b523fe0a37a9b0452c9a0 /debug.c
parent1deae824908fe5475f4326026be581c4d21a606b (diff)
downloadruby-8818677822a06639139f41f6c4657016dd008938.tar.gz
enable ruby_w32_codepage on cygwin
* debug.c, localeinit.c: enable ruby_w32_codepage on cygwin too. [ruby-core:81163] [Bug #13567] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/debug.c b/debug.c
index b289969952..65d86870d2 100644
--- a/debug.c
+++ b/debug.c
@@ -110,6 +110,9 @@ ruby_debug_breakpoint(void)
# if RUBY_MSVCRT_VERSION >= 80
extern int ruby_w32_rtc_error;
# endif
+#endif
+#if defined _WIN32 || defined __CYGWIN__
+#include <windows.h>
UINT ruby_w32_codepage;
#endif
@@ -135,6 +138,8 @@ set_debug_option(const char *str, int len, void *arg)
# if RUBY_MSVCRT_VERSION >= 80
SET_WHEN("rtc_error", ruby_w32_rtc_error, 1);
# endif
+#endif
+#if defined _WIN32 || defined __CYGWIN__
{
int ov;
size_t retlen;