diff options
Diffstat (limited to 'src/include/port/win.h')
| -rw-r--r-- | src/include/port/win.h | 34 |
1 files changed, 4 insertions, 30 deletions
diff --git a/src/include/port/win.h b/src/include/port/win.h index 08b0890425..79fb93950a 100644 --- a/src/include/port/win.h +++ b/src/include/port/win.h @@ -1,41 +1,15 @@ -#define HAS_TEST_AND_SET -typedef unsigned char slock_t; - -#define tzname _tzname /* should be in time.h? */ -#define HAVE_INT_TIMEZONE /* has int _timezone */ +/* $Header: /cvsroot/pgsql/src/include/port/Attic/win.h,v 1.15 2003/03/21 17:18:34 petere Exp $ */ -#include <cygwin/version.h> - -/* - * Check for b20.1 and disable AF_UNIX family socket support. - */ -#if CYGWIN_VERSION_DLL_MAJOR < 1001 -#undef HAVE_UNIX_SOCKETS -#endif - -/* defines for dynamic linking on Win32 platform */ -#ifdef __CYGWIN__ - -#if __GNUC__ && ! defined (__declspec) -#error You need egcs 1.1 or newer for compiling! -#endif +#define HAS_TEST_AND_SET #ifdef BUILDING_DLL #define DLLIMPORT __declspec (dllexport) -#else /* not BUILDING_DLL */ +#else #define DLLIMPORT __declspec (dllimport) #endif -#elif defined(WIN32) && defined(_MSC_VER) /* not CYGWIN */ - #if defined(_DLL) #define DLLIMPORT __declspec (dllexport) -#else /* not _DLL */ +#else #define DLLIMPORT __declspec (dllimport) #endif - -#else /* not CYGWIN, not MSVC */ - -#define DLLIMPORT - -#endif |
