Author: Amaury Forgeot d'Arc <[email protected]>
Branch: 
Changeset: r49458:365410e9e95e
Date: 2011-11-16 01:02 +0100
http://bitbucket.org/pypy/pypy/changeset/365410e9e95e/

Log:    Update PyMODINIT_FUNC for C++ extensions.

diff --git a/pypy/module/cpyext/include/modsupport.h 
b/pypy/module/cpyext/include/modsupport.h
--- a/pypy/module/cpyext/include/modsupport.h
+++ b/pypy/module/cpyext/include/modsupport.h
@@ -48,7 +48,11 @@
 /*
  * This is from pyport.h.  Perhaps it belongs elsewhere.
  */
+#ifdef __cplusplus
+#define PyMODINIT_FUNC extern "C" void
+#else
 #define PyMODINIT_FUNC void
+#endif
 
 
 #ifdef __cplusplus
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to