summaryrefslogtreecommitdiff
path: root/wrappers
diff options
context:
space:
mode:
Diffstat (limited to 'wrappers')
-rw-r--r--wrappers/wrapper.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/wrappers/wrapper.py b/wrappers/wrapper.py
index 1b3cb0a..7ef032a 100644
--- a/wrappers/wrapper.py
+++ b/wrappers/wrapper.py
@@ -6,6 +6,13 @@ import platform
c_object_p = POINTER(c_void_p)
+sysname = platform.system()
+
+if sysname == 'Windows':
+ libc = CDLL('msvcrt.dll')
+else:
+ libc = CDLL('libc.so.6')
+
if sys.version_info[0] > 2:
def bytes_and_length(text):
if type(text) == str: