diff options
| author | Tom Lane | 2002-01-22 19:02:40 +0000 |
|---|---|---|
| committer | Tom Lane | 2002-01-22 19:02:40 +0000 |
| commit | 04c8d4c66082c1717ff73ec0c4eb4b447502c7fd (patch) | |
| tree | 1541971a5c204c5d318bc9dfff14f0e16c11d22b /src/include/c.h | |
| parent | c64f083cf4b9125f55bccfbb3b1f0aa38e3ce712 (diff) | |
libpq++/pgconnection.h must not include postgres_fe.h, else it fails to
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.
Diffstat (limited to 'src/include/c.h')
| -rw-r--r-- | src/include/c.h | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/src/include/c.h b/src/include/c.h index 74bf434acb..67484f4c96 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: c.h,v 1.113 2001/12/03 17:44:52 tgl Exp $ + * $Id: c.h,v 1.114 2002/01/22 19:02:39 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -620,27 +620,8 @@ typedef NameData *Name; /* These are for things that are one way on Unix and another on NT */ #define NULL_DEV "/dev/null" -/* 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 - -/* Provide prototypes for routines not present in a particular machine's +/* + * Provide prototypes for routines not present in a particular machine's * standard C library. It'd be better to put these in pg_config.h, but * in pg_config.h we haven't yet included anything that defines size_t... */ |
