mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
536037e783
commit
b76f05e3ef
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue