/
githubmirror
/
postgres
Обзор
Документация
Войти
/
githubmirror
/
postgres
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/include/port/cygwin.h
23 строки
758 B
Tom Lane
Simplify declaring variables exported from libpgcommon and libpgport.
29 ноя 2021, 19:00
29 ноя 2021, 19:00
e04a805
Код
Авторство
О чём код?
/* 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 #endif /* * Cygwin has a strtof() which is literally just (float)strtod(), which means * we get misrounding _and_ silent over/underflow. Using our wrapper doesn't * fix the misrounding but does fix the error checks, which cuts down on the * number of test variant files needed. */ #define HAVE_BUGGY_STRTOF 1