Browse Source

initjack: signature fixed

Fabian Peter Hammerle 9 years ago
parent
commit
e66adfa2d7
1 changed files with 4 additions and 1 deletions
  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.