|
12 | 12 | * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group |
13 | 13 | * Portions Copyright (c) 1994, Regents of the University of California |
14 | 14 | * |
15 | | - * $Id: c.h,v 1.96 2001/07/03 20:21:50 petere Exp $ |
| 15 | + * $Id: c.h,v 1.97 2001/07/11 22:12:43 momjian Exp $ |
16 | 16 | * |
17 | 17 | *------------------------------------------------------------------------- |
18 | 18 | */ |
@@ -615,7 +615,13 @@ typedef NameData *Name; |
615 | 615 | #else/* not BUILDING_DLL */ |
616 | 616 | #defineDLLIMPORT __declspec (dllimport) |
617 | 617 | #endif |
618 | | -#else/* not CYGWIN */ |
| 618 | +#elif defined(WIN32)&& defined(_MSC_VER)/* not CYGWIN */ |
| 619 | +#if defined(_DLL) |
| 620 | +#defineDLLIMPORT __declspec (dllexport) |
| 621 | +#else/* not _DLL */ |
| 622 | +#defineDLLIMPORT __declspec (dllimport) |
| 623 | +#endif |
| 624 | +#else/* not CYGWIN, not MSVC */ |
619 | 625 | #defineDLLIMPORT |
620 | 626 | #endif |
621 | 627 |
|
|