We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ae85ff commit 0c1d2b2Copy full SHA for 0c1d2b2
pyperformance/data-files/benchmarks/bm_ctypes/cmodule.c
@@ -26,3 +26,13 @@ void void_foo_constchar(const char* str) {
26
27
}
28
29
+PyMODINIT_FUNC
30
+PyInit_cmodule(void) {
31
+ // DELIBERATELY EMPTY
32
+
33
+ // This isn't actually a Python extension module (it's used via ctypes), so
34
+ // this entry point function will never be called. However, we are utilizing
35
+ // setuptools to build it, and on Windows, setuptools explicitly passes the
36
+ // flag /EXPORT:PyInit_cmodule, so it must be defined.
37
+ return NULL;
38
+}
0 commit comments