Skip to content

Commit cce6c68

Browse files
committed
include pgrx-cshim-static.cpp if bindgen thinks there are cppflags
1 parent 61a900f commit cce6c68

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pgrx-pg-sys/pgrx-cshim.c

+7-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@
88
//LICENSE
99
//LICENSE Use of this source code is governed by the MIT license that can be found in the LICENSE file.
1010

11-
#include "pgrx-cshim-static.c"
11+
#if __has_include("pgrx-cshim-static.c")
12+
#include "pgrx-cshim-static.c"
13+
#endif
14+
15+
#if __has_include("pgrx-cshim-static.cpp")
16+
#include "pgrx-cshim-static.cpp"
17+
#endif
1218

1319
void SpinLockInit__pgrx_cshim(volatile slock_t *lock) {
1420
SpinLockInit(lock);

0 commit comments

Comments
 (0)