ruby-changes:32629
From: nobu <ko1@a...>
Date: Sun, 26 Jan 2014 08:42:21 +0900 (JST)
Subject: [ruby-changes:32629] nobu:r44708 (trunk): localeinit.c: cp on cygwin
nobu 2014-01-26 08:42:16 +0900 (Sun, 26 Jan 2014) New Revision: 44708 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44708 Log: localeinit.c: cp on cygwin * localeinit.c (SIZEOF_CP_NAME, CP_FORMAT): needed on cygwin too. Modified files: trunk/localeinit.c Index: localeinit.c =================================================================== --- localeinit.c (revision 44707) +++ localeinit.c (revision 44708) @@ -19,7 +19,7 @@ https://github.com/ruby/ruby/blob/trunk/localeinit.c#L19 #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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/