pg_compat.h 446 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #if defined(WIN32) && !defined(__CYGWIN__)
  3. /* Must be included before sys/stat.h on WIN */
  4. #if defined(_CRT_INTERNAL_NONSTDC_NAMES)
  5. # error "pg_compat.h should be included first"
  6. #endif
  7. #include "win32_pg_compat.h"
  8. #endif
  9. #if defined(__cplusplus)
  10. extern "C" {
  11. #endif
  12. #include "postgres.h"
  13. #if defined(__cplusplus)
  14. }
  15. #endif
  16. #undef Min
  17. #undef Max
  18. #undef Abs
  19. #undef bind
  20. #undef open
  21. #undef FATAL
  22. #undef locale_t
  23. #undef strtou64