From 4d2a77901a57177720bb1480f0114a268083f8ed Mon Sep 17 00:00:00 2001 From: Philipp Moritz Date: Thu, 6 Oct 2016 00:58:27 -0700 Subject: [PATCH] Fixed extern C declaration (found by Mehrdad) --- python/src/pynumbuf/adapters/python.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/src/pynumbuf/adapters/python.cc b/python/src/pynumbuf/adapters/python.cc index 87cfef8d7..fd425a861 100644 --- a/python/src/pynumbuf/adapters/python.cc +++ b/python/src/pynumbuf/adapters/python.cc @@ -8,9 +8,13 @@ using namespace arrow; int32_t MAX_RECURSION_DEPTH = 100; +extern "C" { + extern PyObject* numbuf_serialize_callback; extern PyObject* numbuf_deserialize_callback; +} + namespace numbuf { Status get_value(ArrayPtr arr, int32_t index, int32_t type, PyObject* base, PyObject** result) {