Commits

Amaury Forgeot d'Arc committed 365410e

Update PyMODINIT_FUNC for C++ extensions.

  • Participants
  • Parent commits dff1cac

Comments (0)

Files changed (1)

File pypy/module/cpyext/include/modsupport.h

 /*
  * 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