David Rose 21 years ago
parent
commit
4386afd134
1 changed files with 2 additions and 2 deletions
  1. 2 2
      direct/src/heapq/heapq.cxx

+ 2 - 2
direct/src/heapq/heapq.cxx

@@ -18,9 +18,9 @@ static int _siftdown(PyObject *list, int startpos, int pos);
 static int _siftup(PyObject *list, int pos);
 
 #ifdef _WIN32
-extern __declspec(dllexport) void initlibheapq(void);
+extern "C" __declspec(dllexport) void initlibheapq(void);
 #else
-extern void initlibheapq();
+extern "C" void initlibheapq();
 #endif
 
 static PyObject *