IsoSpec  2.2.1
python-build.cpp
1 
2 
3 #define ISOSPEC_BUILDING_PYTHON
4 
5 #include "platform.h"
6 
7 
8 #if ISOSPEC_TEST_WE_ARE_ON_WINDOWS
9 
10 #define ISOSPEC_C_API __declspec(dllexport)
11 
12 #include <Python.h>
13 
14 // Provide a dumy PyInit function on Windows/MSVC.
15 // We're not using it, as we'll load using CFFI - but it's easier
16 // than fighting with the build system.
17 extern "C" {
18  __declspec(dllexport) PyObject* PyInit_IsoSpecCppPy(void) { return nullptr; };
19 }
20 
21 #endif
22 
23 #include "unity-build.cpp"