commit bbcacfaf837095f64d58597779568c6fd7878c79
parent 35cb3a51f45ad79bb828161e4a62450c60dd40cc
Author: Egor Achkasov <eaachkasov@edu.hse.ru>
Date: Tue, 10 Dec 2024 18:08:50 +0100
Add extern "C" for VCPP
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/compute_paths_pybind11.cpp b/compute_paths_pybind11.cpp
@@ -1,6 +1,13 @@
#include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
+
+#ifdef _WIN32
+extern "C" {
+ #include "compute_paths.h"
+}
+#else
#include "compute_paths.h"
+#endif
namespace py = pybind11;