diff --git a/src/lib/enet/enet.pp b/src/lib/enet/enet.pp
index e50109f641ab696c3bb3128688d20e17ef5c1b13..cbb96b0f33d6d2cc3f444eaf5b87a79ebbccbf48 100644 (file)
--- a/src/lib/enet/enet.pp
+++ b/src/lib/enet/enet.pp
// 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}
+ {$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}