aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/parser/pg_wrapper/pg_compat.h
blob: c94a5aede02301334fbea0332615a7bda7b8c182 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once

#if defined(WIN32) && !defined(__CYGWIN__)

/* Must be included before sys/stat.h on WIN */
#if defined(_CRT_INTERNAL_NONSTDC_NAMES)
# error "pg_compat.h should be included first"
#endif

#include "win32_pg_compat.h"

#endif

#if defined(__cplusplus)
extern "C" {
#endif

#include "postgres.h"

#if defined(__cplusplus)
}
#endif

#undef Min
#undef Max
#undef Abs
#undef bind
#undef open
#undef FATAL
#undef locale_t
#undef strtou64