diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2003-03-21 17:18:34 +0000 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2003-03-21 17:18:34 +0000 |
| commit | 1a7f4ed5252dd08d9bbf26a67ddf22c38528c636 (patch) | |
| tree | 4daa4d5d3dcc8d050bf8d8afbe2d4fc568455a3c /src/include/port/win.h | |
| parent | 93331d8318325305cad9c5224eb4b86663214846 (diff) | |
| download | postgresql-1a7f4ed5252dd08d9bbf26a67ddf22c38528c636.tar.gz | |
Make "win" a separate port from "cygwin". This means you can now
configure under native Windows (MinGW that is), but you won't get very far
compiling yet. The dynaloader files are from Jan Wieck's patch set.
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 |
