pg_kernels.17.cpp 666 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. extern "C" {
  2. #include "postgres.h"
  3. #include "fmgr.h"
  4. #include "postgresql/src/backend/utils/fmgrprotos.h"
  5. #undef Abs
  6. #undef Min
  7. #undef Max
  8. #undef TypeName
  9. #undef SortBy
  10. #undef Sort
  11. #undef Unique
  12. #undef LOG
  13. #undef INFO
  14. #undef NOTICE
  15. #undef WARNING
  16. #undef ERROR
  17. #undef FATAL
  18. #undef PANIC
  19. #undef open
  20. #undef fopen
  21. #undef bind
  22. #undef locale_t
  23. #undef strtou64
  24. }
  25. #include "arrow.h"
  26. namespace NYql {
  27. extern "C" {
  28. Y_PRAGMA_DIAGNOSTIC_PUSH
  29. Y_PRAGMA("GCC diagnostic ignored \"-Wreturn-type-c-linkage\"")
  30. #ifdef USE_SLOW_PG_KERNELS
  31. #include "pg_kernels.slow.17.inc"
  32. #else
  33. #include "pg_proc_policies.17.inc"
  34. #include "pg_kernels.17.inc"
  35. #endif
  36. Y_PRAGMA_DIAGNOSTIC_POP
  37. }
  38. }