Skip to content

Commit bd1a5c6

Browse files
committed
oh how i hate mac
1 parent 4a9b652 commit bd1a5c6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/pointers/_cstd.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@
2424
_c_library_name = find_library("c") or "libc.so.6"
2525

2626
dll = ctypes.CDLL(_c_library_name)
27-
mdll = dll if platform in ("win32", "cygwin") else ctypes.CDLL(find_library("m") or "libm.so.6")
27+
mdll = dll if platform in ("win32", "cygwin") else ctypes.CDLL(
28+
find_library("m") or (
29+
"libm.dylib" if platform == "darwin" else "libm.so.6"
30+
)
31+
)
32+
2833

2934
class tm(ctypes.Structure):
3035
_fields_ = [

0 commit comments

Comments
 (0)