*** port.h.orig 2011-01-15 05:29:13.436000000 +0900 --- port.h 2011-01-23 21:56:19.554000000 +0900 *************** *** 176,181 **** --- 176,188 ---- #ifdef printf #undef printf #endif + /* + * Versions of libintl >= 0.18? try to replace setlocale() with a macro + * to their own versions. Disable the macro, if it exists. + */ + #if defined(setlocale) && defined(WIN32) + #undef setlocale + #endif extern int pg_vsnprintf(char *str, size_t count, const char *fmt, va_list args); extern int