Skip to content

Commit

Permalink
Added osx support to ctypes wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jbester committed Jan 29, 2016
1 parent 1297015 commit 66a1d1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _nanomsg_ctypes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
if sys.platform in ('win32', 'cygwin'):
_functype = ctypes.WINFUNCTYPE
_lib = ctypes.windll.nanomsg
elif sys.platform in ('darwin'):
_functype = ctypes.CFUNCTYPE
_lib = ctypes.cdll.LoadLibrary('libnanomsg.dylib')
else:
_functype = ctypes.CFUNCTYPE
_lib = ctypes.cdll.LoadLibrary('libnanomsg.so')
Expand Down

0 comments on commit 66a1d1d

Please sign in to comment.