hedgewars/LuaPas.pas
changeset 2924 908851e59958
parent 2922 34efcb0681d8
child 2948 3f21a9dc93d0
--- a/hedgewars/LuaPas.pas	Wed Mar 03 14:49:10 2010 +0000
+++ b/hedgewars/LuaPas.pas	Wed Mar 03 15:04:39 2010 +0000
@@ -10,6 +10,7 @@
 interface
 
 {.$DEFINE LUA_GETHOOK}
+{$INCLUDE "config.inc"}
 
 type
   size_t   = type Cardinal;
@@ -20,15 +21,7 @@
   Plua_State = ^lua_State;
 
 const
-{$IFDEF UNIX}
-  {$IFDEF DARWIN}
-    LuaLibName = 'lua';
-  {$ELSE}
-    LuaLibName = 'lua5.1.so';
-  {$ENDIF}
-{$ELSE}
-  LuaLibName = 'lua.dll';
-{$ENDIF}
+    LuaLibName = cLuaLibrary;
 
 
 (*****************************************************************************)