ecpg_with_bigint.patch

application/octet-stream

Filename: ecpg_with_bigint.patch
Type: application/octet-stream
Part: 0
Message: RE: BUG #15080: ecpg on windows doesn't define HAVE_LONG_LONG_INT

Patch

Format: unified
File+
src/include/pg_config.h.win32 6 2
diff --git a/src/include/pg_config.h.win32 b/src/include/pg_config.h.win32
index 9149c7a..a6c6d16 100644
--- a/src/include/pg_config.h.win32
+++ b/src/include/pg_config.h.win32
@@ -385,13 +385,17 @@
 #define HAVE_STRONG_RANDOM 1
 
 /* Define to 1 if you have the `strtoll' function. */
-//#define HAVE_STRTOLL 1
+#if (_MSC_VER >= 1800)
+#define HAVE_STRTOLL 1
+#endif
 
 /* Define to 1 if you have the `strtoq' function. */
 /* #undef HAVE_STRTOQ */
 
 /* Define to 1 if you have the `strtoull' function. */
-//#define HAVE_STRTOULL 1
+#if (_MSC_VER >= 1800)
+#define HAVE_STRTOULL 1
+#endif
 
 /* Define to 1 if you have the `strtouq' function. */
 /* #undef HAVE_STRTOUQ */