cmark

My personal build of CMark ✏️

Commit
5a3f747222d48422eb1d4e5c60cc5a042808fd0d
Parent
bce3f59f60e21ffd4f23855c76174d361609b1e0
Author
John MacFarlane <jgm@berkeley.edu>
Date

Revert "wrapper.py: remove unused (and faulty) libc instantiation (#175)"

This reverts commit c4c1d59ca29aceb1c5919908ac97d9476264fd96.

Diffstat

1 file changed, 7 insertions, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified wrappers/wrapper.py 7 7 0
diff --git 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: