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