Skip to content

Commit

Permalink
oh how i hate mac
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroIntensity committed Nov 30, 2022
1 parent 4a9b652 commit bd1a5c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pointers/_cstd.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@
_c_library_name = find_library("c") or "libc.so.6"

dll = ctypes.CDLL(_c_library_name)
mdll = dll if platform in ("win32", "cygwin") else ctypes.CDLL(find_library("m") or "libm.so.6")
mdll = dll if platform in ("win32", "cygwin") else ctypes.CDLL(
find_library("m") or (
"libm.dylib" if platform == "darwin" else "libm.so.6"
)
)


class tm(ctypes.Structure):
_fields_ = [
Expand Down

1 comment on commit bd1a5c6

@MichaByte
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ouch

Please sign in to comment.