diff options
author | robot-contrib <robot-contrib@yandex-team.com> | 2023-08-25 23:03:00 +0300 |
---|---|---|
committer | robot-contrib <robot-contrib@yandex-team.com> | 2023-08-25 23:17:35 +0300 |
commit | fcd88645dec99a9d5bcac7869e9561e651fd9a29 (patch) | |
tree | 9e8dfdafc7f2071b3b147cbc202646d07958dad1 /contrib | |
parent | fa45097cd8d5b9a64fb8ccb3bc4f55d4a7086b72 (diff) | |
download | ydb-fcd88645dec99a9d5bcac7869e9561e651fd9a29.tar.gz |
Update contrib/libs/libpq to 15.3
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/libs/libpq/src/include/port/win32.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/contrib/libs/libpq/src/include/port/win32.h b/contrib/libs/libpq/src/include/port/win32.h index e31861fc249..115708f2ea2 100644 --- a/contrib/libs/libpq/src/include/port/win32.h +++ b/contrib/libs/libpq/src/include/port/win32.h @@ -46,16 +46,26 @@ * defines for dynamic linking on Win32 platform */ +/* + * 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 +#endif +/* + * Under MSVC, functions exported by a loadable module must be marked + * "dllexport". Other compilers don't need that. + */ #ifdef _MSC_VER #define PGDLLEXPORT __declspec (dllexport) -#else -#define PGDLLEXPORT #endif /* |