소스 검색

initjack: signature fixed

Fabian Peter Hammerle 9 년 전
부모
커밋
e66adfa2d7
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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.