diff options
| author | Bruce Momjian | 2004-09-27 23:24:45 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2004-09-27 23:24:45 +0000 |
| commit | e1c8b37afb5669542272585245b0706fcad174da (patch) | |
| tree | 66a2fef74da786dd1f0636f038c639bd6fce94b2 /src/include/c.h | |
| parent | e0170510062d49ca79666e944803272b4dd5f711 (diff) | |
Add new macro as shorthand for MS VC and Borland C++:
+ #if defined(_MSC_VER) || defined(__BORLANDC__)
+ #define WIN32_CLIENT_ONLY
+ #endif
Diffstat (limited to 'src/include/c.h')
| -rw-r--r-- | src/include/c.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/include/c.h b/src/include/c.h index fcdf6b404b..861b11ce0d 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/c.h,v 1.176 2004/09/27 22:11:22 momjian Exp $ + * $PostgreSQL: pgsql/src/include/c.h,v 1.177 2004/09/27 23:24:37 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -54,6 +54,10 @@ #include "pg_config_manual.h" /* must be after pg_config.h */ #if !defined(WIN32) && !defined(__CYGWIN__) #include "pg_config_os.h" /* must be before any system header files */ +#else +#if defined(_MSC_VER) || defined(__BORLANDC__) +#define WIN32_CLIENT_ONLY +#endif #endif #include "postgres_ext.h" @@ -76,7 +80,7 @@ #endif #if defined(WIN32) || defined(__CYGWIN__) -#if !defined(_MSC_VER) && !defined(__BORLANDC__) +#ifndef WIN32_CLIENT_ONLY /* We have to redefine some system functions after they are included above */ #include "pg_config_os.h" #else |
