diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-10-19 20:03:08 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-10-19 20:03:08 +0000 |
commit | f6e00ae128ab9d92a71abd3fabb9360dc497bcfe (patch) | |
tree | a50b8001e91524a5f3a1a7ec40d75ac8fc990a95 /src | |
parent | 6bc1f9b334b27e9a374290824fe37dddc5002594 (diff) |
Further MSVC portability fixes from Magnus.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/port/win32.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/include/port/win32.h b/src/include/port/win32.h index e3bc767689a..b23123bc4ab 100644 --- a/src/include/port/win32.h +++ b/src/include/port/win32.h @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.62 2006/10/04 00:30:10 momjian Exp $ */ +/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.63 2006/10/19 20:03:08 tgl Exp $ */ #if defined(_MSC_VER) || defined(__BORLANDC__) #define WIN32_ONLY_COMPILER @@ -289,6 +289,19 @@ typedef unsigned short mode_t; #define isnan(x) _isnan(x) #define finite(x) _finite(x) +#ifndef BIG_ENDIAN +#define BIG_ENDIAN 4321 +#endif +#ifndef LITTLE_ENDIAN +#define LITTLE_ENDIAN 1234 +#endif +#ifndef PDP_ENDIAN +#define PDP_ENDIAN 3412 +#endif + +#ifndef BYTE_ORDER +#define BYTE_ORDER LITTLE_ENDIAN +#endif /* Pulled from Makefile.port in mingw */ #define DLSUFFIX ".dll" |