diff options
Diffstat (limited to 'src/include/port/win.h')
-rw-r--r-- | src/include/port/win.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/include/port/win.h b/src/include/port/win.h deleted file mode 100644 index 52725a1e1af..00000000000 --- a/src/include/port/win.h +++ /dev/null @@ -1,45 +0,0 @@ -#define HAS_TEST_AND_SET -typedef unsigned char slock_t; - -#ifndef O_DIROPEN -#define O_DIROPEN 0x100000 /* should be in sys/fcntl.h */ -#endif - -#define tzname _tzname /* should be in time.h? */ -#define HAVE_INT_TIMEZONE /* has int _timezone */ - -#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 - -#ifdef BUILDING_DLL -#define DLLIMPORT __declspec (dllexport) -#else /* not BUILDING_DLL */ -#define DLLIMPORT __declspec (dllimport) -#endif - -#elif defined(WIN32) && defined(_MSC_VER) /* not CYGWIN */ - -#if defined(_DLL) -#define DLLIMPORT __declspec (dllexport) -#else /* not _DLL */ -#define DLLIMPORT __declspec (dllimport) -#endif - -#else /* not CYGWIN, not MSVC */ - -#define DLLIMPORT - -#endif |