linking phsyfs on osx
authorkoda
Mon, 19 Nov 2012 00:49:24 +0100
changeset 8063 06efc1ea6a40
parent 8062 abbcdf73327a
child 8064 202e2cce7077
linking phsyfs on osx
hedgewars/uPhysFSLayer.pas
hedgewars/uScript.pas
--- a/hedgewars/uPhysFSLayer.pas	Sun Nov 18 19:33:15 2012 +0100
+++ b/hedgewars/uPhysFSLayer.pas	Mon Nov 19 00:49:24 2012 +0100
@@ -7,6 +7,10 @@
     {$LINKLIB ../bin/libphysfsrwops.a}
 {$ENDIF}
 
+{$IFDEF DARWIN}
+    {$LINKFRAMEWORK IOKit}
+{$ENDIF}
+
 interface
 uses SDLh;
 
--- a/hedgewars/uScript.pas	Sun Nov 18 19:33:15 2012 +0100
+++ b/hedgewars/uScript.pas	Mon Nov 19 00:49:24 2012 +0100
@@ -1980,7 +1980,7 @@
 
 // custom script loader via physfs, passed to lua_load
 const BUFSIZE = 1024;
-var physfsReaderBuffer: pointer; external;
+var physfsReaderBuffer: pointer; cvar; external;
 function physfsReader(L: Plua_State; f: PFSFile; sz: Psize_t) : PChar; cdecl; external;