port.h.diff

text/plain

Filename: port.h.diff
Type: text/plain
Part: 0
Message: setlocale and gettext in Postgres

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: context
File+
port.h 7 0
*** 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