mirror of https://github.com/postgres/postgres
compile in client apps that use the standard installed header set. To allow removing that include, move DLLIMPORT definitions out of c.h and into the appropriate port-specific header files.REL7_2_STABLE
parent
c64f083cf4
commit
04c8d4c660
@ -1,2 +1,29 @@ |
||||
#define USES_WINSOCK |
||||
#define NOFILE 100 |
||||
|
||||
/* 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 |
||||
|
||||
Loading…
Reference in new issue