[pypy-commit] pypy default: fix for win32

mattip pypy.commits at gmail.com
Sat Dec 30 02:37:24 EST 2017


Author: Matti Picus <matti.picus at gmail.com>
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>


More information about the pypy-commit mailing list