2010-09-20 22:08:53 +02:00
|
|
|
/* src/include/port/cygwin.h */
|
2003-03-21 18:18:34 +01:00
|
|
|
|
2021-11-29 17:00:00 +01:00
|
|
|
/*
|
|
|
|
* 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
|
2003-03-21 18:18:34 +01:00
|
|
|
#ifdef BUILDING_DLL
|
2007-07-25 14:22:54 +02:00
|
|
|
#define PGDLLIMPORT __declspec (dllexport)
|
2003-03-21 18:18:34 +01:00
|
|
|
#else
|
2007-07-25 14:22:54 +02:00
|
|
|
#define PGDLLIMPORT __declspec (dllimport)
|
2003-03-21 18:18:34 +01:00
|
|
|
#endif
|
2021-11-29 17:00:00 +01:00
|
|
|
#endif
|
2019-02-16 02:50:16 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* 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
|