Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

mingw64: Python pmapi on Windows - prevent crash when free()'ing resources #42

Merged
merged 1 commit into from Aug 21, 2015
Jump to file or symbol
Failed to load files and symbols.
+3 −2
Split
View
@@ -89,16 +89,17 @@
#
# dynamic library loads
#
+import sys
LIBPCP = CDLL(find_library("pcp"))
-LIBC = CDLL(find_library("c"))
+libc_name = "c" if sys.platform != "win32" else "msvcrt"
+LIBC = CDLL(find_library(libc_name))
##############################################################################
#
# python version information and compatibility
#
-import sys
if sys.version >= '3':
integer_types = (int,)