Skip to content

Commit 08cee81

Browse files
committed
Fix xxhash symbol conflict by using namespace
1 parent 6042d40 commit 08cee81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parser/parser.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package parser
22

33
/*
4-
#cgo CFLAGS: -Iinclude -Iinclude/postgres -g -fstack-protector -std=gnu99 -Wno-unknown-warning-option
4+
#cgo CFLAGS: -Iinclude -Iinclude/postgres -g -fstack-protector -std=gnu99 -Wno-unknown-warning-option -DXXH_NAMESPACE=PG_QUERY_
55
#cgo windows CFLAGS: -Iinclude/postgres/port/win32
66
#cgo LDFLAGS:
77
#include "pg_query.h"
@@ -290,4 +290,4 @@ func HashXXH3_64(input []byte, seed uint64) (result uint64) {
290290
result = *(*uint64)(unsafe.Pointer(&res))
291291

292292
return
293-
}
293+
}

0 commit comments

Comments
 (0)