DEADSOFTWARE

fix building for osx
[d2df-sdl.git] / src / lib / enet / enet.pp
index e50109f641ab696c3bb3128688d20e17ef5c1b13..f0c27befc708d2b1efcf2e1b20dbe187b1ede89d 100644 (file)
     // because just external is case insensitive, but fuck it
   {$ENDIF}
 {$ELSE}
-  {$DEFINE libraryLibENetDecl := cdecl}
-  {$DEFINE libraryLibENetImp := cdecl; external 'enet'}
-  {$DEFINE libraryLibENetVar := cvar; external 'enet'}
+  {$IFDEF DARWIN}
+    {$LINKLIB libenet.a}
+    {$DEFINE libraryLibENetDecl := cdecl}
+    {$DEFINE libraryLibENetImp := cdecl; external}
+    {$DEFINE libraryLibENetVar := cvar; external}
+  {$ELSE}
+    {$DEFINE libraryLibENetDecl := cdecl}
+    {$DEFINE libraryLibENetImp := cdecl; external 'enet'}
+    {$DEFINE libraryLibENetVar := cvar; external 'enet'}
+  {$ENDIF}
 {$ENDIF}