aboutsummaryrefslogtreecommitdiffstats
path: root/localeinit.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-25 23:42:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-25 23:42:16 +0000
commitb76f05e3efa2af7b6d3dd70b1c3d5a0fee10972d (patch)
tree3a5b1d8f3f469bda50393aeb809eaf9d6181b950 /localeinit.c
parent536037e783a576d3c6a6418fcd833651ff1e8909 (diff)
downloadruby-b76f05e3efa2af7b6d3dd70b1c3d5a0fee10972d.tar.gz
localeinit.c: cp on cygwin
* localeinit.c (SIZEOF_CP_NAME, CP_FORMAT): needed on cygwin too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'localeinit.c')
-rw-r--r--localeinit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/localeinit.c b/localeinit.c
index 420484a463..51a06c5b1c 100644
--- a/localeinit.c
+++ b/localeinit.c
@@ -19,7 +19,7 @@
#include <langinfo.h>
#endif
-#if defined _WIN32
+#if defined _WIN32 || defined __CYGWIN__
#define SIZEOF_CP_NAME ((sizeof(UINT) * 8 / 3) + 4)
#define CP_FORMAT(buf, codepage) snprintf(buf, sizeof(buf), "CP%u", (codepage))
#endif