diff options
Diffstat (limited to 'src/include/port/cygwin.h')
-rw-r--r-- | src/include/port/cygwin.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/include/port/cygwin.h b/src/include/port/cygwin.h index 64d69936e5e..44bf8533729 100644 --- a/src/include/port/cygwin.h +++ b/src/include/port/cygwin.h @@ -1,12 +1,18 @@ /* src/include/port/cygwin.h */ +/* + * Variables declared in the core backend and referenced by loadable + * modules need to be marked "dllimport" in the core build, but + * "dllexport" when the declaration is read in a loadable module. + * No special markings should be used when compiling frontend code. + */ +#ifndef FRONTEND #ifdef BUILDING_DLL #define PGDLLIMPORT __declspec (dllexport) #else #define PGDLLIMPORT __declspec (dllimport) #endif - -#define PGDLLEXPORT +#endif /* * Cygwin has a strtof() which is literally just (float)strtod(), which means |