summaryrefslogtreecommitdiff
path: root/src/include/c.h
diff options
context:
space:
mode:
authorTom Lane2006-10-03 20:33:20 +0000
committerTom Lane2006-10-03 20:33:20 +0000
commit0184c6835cb99057f3d99f4b5a62965221e2bf13 (patch)
tree6a7817158d4e7cff55588796236650fe41ca7209 /src/include/c.h
parent878f32feab51f5d2968ea27d4ab84653fe397777 (diff)
Rearrange MSVC errcode hack, fix incorrect _MSC_VER test. Magnus
Diffstat (limited to 'src/include/c.h')
-rw-r--r--src/include/c.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/c.h b/src/include/c.h
index 5904c34e6fa..db9983b4624 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/c.h,v 1.212 2006/10/03 03:59:22 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/c.h,v 1.213 2006/10/03 20:33:20 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -58,8 +58,10 @@
#include "postgres_ext.h"
#include "pg_trace.h"
-#if defined(__BORLANDC__) || (_MSC_VER > 1400)
+#if defined(__BORLANDC__) || (_MSC_VER >= 1400)
+#define errcode __msvc_errcode
#include <crtdefs.h>
+#undef errcode
#endif
#include <stdio.h>