Skip to content

Commit cb9457d

Browse files
Merge pull request #18 from ray-project/fix
Fixed extern C declaration (found by Mehrdad)
2 parents 7055c6f + 4d2a779 commit cb9457d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python/src/pynumbuf/adapters/python.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ using namespace arrow;
88

99
int32_t MAX_RECURSION_DEPTH = 100;
1010

11+
extern "C" {
12+
1113
extern PyObject* numbuf_serialize_callback;
1214
extern PyObject* numbuf_deserialize_callback;
1315

16+
}
17+
1418
namespace numbuf {
1519

1620
Status get_value(ArrayPtr arr, int32_t index, int32_t type, PyObject* base, PyObject** result) {

0 commit comments

Comments
 (0)