hedgewars/LuaPas.pas
branchwebgl
changeset 9236 ddd675825672
parent 8847 ff7fbab7cd56
parent 9208 acb2492288e5
child 10015 4feced261c68
--- a/hedgewars/LuaPas.pas	Mon Jun 17 22:54:17 2013 +0200
+++ b/hedgewars/LuaPas.pas	Mon Jun 17 23:10:45 2013 +0200
@@ -14,6 +14,12 @@
 uses uConsts;
 {.$DEFINE LUA_GETHOOK}
 
+const LuaLibName = {$IFDEF LUA_INTERNAL}'libhwlua'{$ELSE}'liblua'{$ENDIF};
+
+{$IFNDEF WIN32}
+    {$linklib lua}
+{$ENDIF}
+
 type
 {$IFNDEF PAS2C}
     size_t   = Cardinal;
@@ -24,9 +30,6 @@
     lua_State = record end;
     Plua_State = ^lua_State;
 
-{$DEFINE LuaLibName:= cLuaLibrary}
-
-
 (*****************************************************************************)
 (*                               luaconfig.h                                 *)
 (*****************************************************************************)