Browse Source

Merge pull request #364 from nwoolls/bug/nanofury-undetected-osx

Bugfix: HID API not properly detected on Mac OS X
Luke-Jr 12 years ago
parent
commit
6c4ac9c7ad
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lowl-hid.c

+ 4 - 0
lowl-hid.c

@@ -115,6 +115,10 @@ bool hidapi_load_library()
 		sprintf(&dlname[9], "%s.%s", *p,
 #ifdef WIN32
 		        "dll"
+#elif defined(__APPLE__)
+		        //Mach-O uses dylibs for shared libraries
+		        //http://www.finkproject.org/doc/porting/porting.en.html#shared
+		        "dylib"
 #else
 		        "so"
 #endif