1. Pypy
  2. Untitled project
  3. pypy

Commits

Amaury Forgeot d'Arc  committed 365410e

Update PyMODINIT_FUNC for C++ extensions.

  • Participants
  • Parent commits dff1cac
  • Branches default

Comments (0)

Files changed (1)

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

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