Skip to content

Commit c1875d3

Browse files
authored
fix windows build (#7730)
1 parent a00d286 commit c1875d3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

ydb/library/yql/parser/pg_wrapper/utils.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,27 @@
1-
#include <util/system/compiler.h>
2-
#include <ydb/library/yql/parser/pg_catalog/catalog.h>
1+
#include "pg_compat.h"
32

43
extern "C" {
54
#include "postgres.h"
65
#include "fmgr.h"
76
#include "utils/array.h"
7+
#include "utils/elog.h"
88
#include "pgstat.h"
99
#include "catalog/pg_namespace_d.h"
1010
}
1111

1212
#undef Max
13+
constexpr auto PG_ERROR = ERROR;
14+
#undef ERROR
1315

1416
#include "utils.h"
1517

18+
#include <util/system/compiler.h>
19+
#include <ydb/library/yql/parser/pg_catalog/catalog.h>
20+
1621
#include <util/system/dynlib.h>
1722

23+
#define ERROR PG_ERROR
24+
1825
namespace NYql {
1926

2027
void PrepareVariadicArraySlow(FunctionCallInfoBaseData& callInfo, const NPg::TProcDesc& desc) {

0 commit comments

Comments
 (0)