PostgreSQL Source Code  git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cygwin.h
Go to the documentation of this file.
1 /* src/include/port/cygwin.h */
2 
3 /*
4  * Variables declared in the core backend and referenced by loadable
5  * modules need to be marked "dllimport" in the core build, but
6  * "dllexport" when the declaration is read in a loadable module.
7  * No special markings should be used when compiling frontend code.
8  */
9 #ifndef FRONTEND
10 #ifdef BUILDING_DLL
11 #define PGDLLIMPORT __declspec (dllexport)
12 #else
13 #define PGDLLIMPORT __declspec (dllimport)
14 #endif
15 #endif
16 
17 /*
18  * Cygwin has a strtof() which is literally just (float)strtod(), which means
19  * we get misrounding _and_ silent over/underflow. Using our wrapper doesn't
20  * fix the misrounding but does fix the error checks, which cuts down on the
21  * number of test variant files needed.
22  */
23 #define HAVE_BUGGY_STRTOF 1