Author: Armin Rigo <[email protected]>
Branch:
Changeset: r2994:88913a107e11
Date: 2017-07-20 09:07 +0200
http://bitbucket.org/cffi/cffi/changeset/88913a107e11/
Log: Issue #323
CFFI_DLLEXPORT for MinGW on Windows
diff --git a/cffi/_embedding.h b/cffi/_embedding.h
--- a/cffi/_embedding.h
+++ b/cffi/_embedding.h
@@ -6,7 +6,7 @@
#endif
-#if defined(_MSC_VER)
+#if defined(_WIN32)
# define CFFI_DLLEXPORT __declspec(dllexport)
#elif defined(__GNUC__)
# define CFFI_DLLEXPORT __attribute__((visibility("default")))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit