summaryrefslogtreecommitdiff
path: root/src/include/c.h
diff options
context:
space:
mode:
authorAndrew Dunstan2011-12-10 20:35:41 +0000
committerAndrew Dunstan2011-12-10 20:35:41 +0000
commit1a0c76c32fe470142d3663dd84ac960d75a4e8db (patch)
treed783c0f17e41b6a627b3750e92bb60b301215a8b /src/include/c.h
parentab7d4213f93f0ef0e45b9b9343725974f196b091 (diff)
Enable compiling with the mingw-w64 32 bit compiler.
Original patch by Lars Kanis, reviewed by Nishiyama Tomoaki and tweaked some by me. This compiler, or at least the latest version of it, is currently broken, and only passes the regression tests if built with -O0.
Diffstat (limited to 'src/include/c.h')
-rw-r--r--src/include/c.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/c.h b/src/include/c.h
index 0391860846..cb9b150f8a 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -58,7 +58,8 @@
#endif
#include "postgres_ext.h"
-#if _MSC_VER >= 1400 || defined(WIN64)
+#define HAVE_CRTDEFS_H 1
+#if _MSC_VER >= 1400 || defined(HAVE_CRTDEFS_H)
#define errcode __msvc_errcode
#include <crtdefs.h>
#undef errcode