cygwin.h 518 Bytes
Newer Older
1
/* $PostgreSQL: pgsql/src/include/port/cygwin.h,v 1.9 2010/05/28 16:34:15 itagaki Exp $ */
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

#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

#if __GNUC__ && ! defined (__declspec)
#error You need egcs 1.1 or newer for compiling!
#endif

#ifdef BUILDING_DLL
17
#define PGDLLIMPORT __declspec (dllexport)
18
#else
19
#define PGDLLIMPORT __declspec (dllimport)
20
#endif
21

22
#define PGDLLEXPORT __declspec (dllimport)