Skip to content

Commit 08dace7

Browse files
committed
use msvcrt on windows
1 parent 8817386 commit 08dace7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/tidesdb/tidesdb.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,10 @@ def get(self, cf: ColumnFamily, key: bytes) -> bytes:
742742

743743
value = ctypes.string_at(value_ptr, value_size.value)
744744

745-
libc = ctypes.CDLL(None)
745+
if sys.platform == "win32":
746+
libc = ctypes.CDLL("msvcrt")
747+
else:
748+
libc = ctypes.CDLL(None)
746749
libc.free(ctypes.cast(value_ptr, c_void_p))
747750

748751
return value

0 commit comments

Comments
 (0)