Commit c554bf87 authored by Bruce Momjian's avatar Bruce Momjian

Fix definition of "errcode" for MSVC.

Hiroshi Saito
parent 2392cdb7
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $PostgreSQL: pgsql/src/include/c.h,v 1.208 2006/07/29 17:35:07 momjian Exp $ * $PostgreSQL: pgsql/src/include/c.h,v 1.209 2006/08/08 18:49:14 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -60,11 +60,9 @@ ...@@ -60,11 +60,9 @@
#if defined(_MSC_VER) || defined(__BORLANDC__) #if defined(_MSC_VER) || defined(__BORLANDC__)
#define WIN32_ONLY_COMPILER #define WIN32_ONLY_COMPILER
#define errcode __vc_errcode
#if defined(__BORLANDC__) || (_MSC_VER > 1400) #if defined(__BORLANDC__) || (_MSC_VER > 1400)
#include <crtdefs.h> #include <crtdefs.h>
#endif #endif
#undef errcode
#endif #endif
#include <stdio.h> #include <stdio.h>
......
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.54 2006/07/30 01:45:21 momjian Exp $ */ /* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.55 2006/08/08 18:49:14 momjian Exp $ */
/* undefine and redefine after #include */ /* undefine and redefine after #include */
#undef mkdir #undef mkdir
...@@ -262,6 +262,9 @@ typedef unsigned short mode_t; ...@@ -262,6 +262,9 @@ typedef unsigned short mode_t;
#define inline __inline #define inline __inline
#define __inline__ __inline #define __inline__ __inline
#undef errcode
#define errcode __vc_errcode
#define _S_IRWXU (_S_IREAD | _S_IWRITE | _S_IEXEC) #define _S_IRWXU (_S_IREAD | _S_IWRITE | _S_IEXEC)
#define _S_IXUSR _S_IEXEC #define _S_IXUSR _S_IEXEC
#define _S_IWUSR _S_IWRITE #define _S_IWUSR _S_IWRITE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment