Explorar o código

initjack: signature fixed

Fabian Peter Hammerle %!s(int64=9) %!d(string=hai) anos
pai
achega
e66adfa2d7
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      jack.c

+ 4 - 1
jack.c

@@ -570,7 +570,10 @@ static PyMethodDef port_methods[] = {
     {NULL},
     };
 
-PyMODINIT_FUNC initjack()
+#ifndef PyMODINIT_FUNC	// declarations for DLL import/export
+#define PyMODINIT_FUNC void
+#endif
+PyMODINIT_FUNC initjack(void)
 {
     // Initialize and acquire the global interpreter lock.
     // This must be done in the main thread before creating engaging in any thread operations.