cygwin.h 758 B

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