From b76f05e3efa2af7b6d3dd70b1c3d5a0fee10972d Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 25 Jan 2014 23:42:16 +0000 Subject: 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 --- localeinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'localeinit.c') diff --git a/localeinit.c b/localeinit.c index 420484a463..51a06c5b1c 100644 --- a/localeinit.c +++ b/localeinit.c @@ -19,7 +19,7 @@ #include #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 -- cgit v1.2.3