Author: Matti Picus <[email protected]>
Branch: 
Changeset: r93601:c6c9d44fae1c
Date: 2017-12-30 07:36 +0000
http://bitbucket.org/pypy/pypy/changeset/c6c9d44fae1c/

Log:    fix for win32

diff --git a/pypy/module/test_lib_pypy/ctypes_tests/_ctypes_test.c 
b/pypy/module/test_lib_pypy/ctypes_tests/_ctypes_test.c
--- a/pypy/module/test_lib_pypy/ctypes_tests/_ctypes_test.c
+++ b/pypy/module/test_lib_pypy/ctypes_tests/_ctypes_test.c
@@ -3,7 +3,11 @@
 #define MS_WIN32
 #endif
 
-#define EXPORT(x)  extern x
+#ifdef _WIN32
+#define EXPORT(x) __declspec(dllexport) x
+#else
+#define EXPORT(x) extern x
+#endif
 
 #include <stdlib.h>
 #include <math.h>
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to