Engine:
authorsmxx
Wed, 03 Mar 2010 14:35:48 +0000
changeset 2922 34efcb0681d8
parent 2921 b7a636503298
child 2923 e33ecd95aa1a
Engine: * Reverted lookup name for Lua as the new version didn't work everywhere as well
hedgewars/LuaPas.pas
--- a/hedgewars/LuaPas.pas	Wed Mar 03 11:38:02 2010 +0000
+++ b/hedgewars/LuaPas.pas	Wed Mar 03 14:35:48 2010 +0000
@@ -19,9 +19,17 @@
   lua_State = record end;
   Plua_State = ^lua_State;
 
-// only looking for "lua" might be dangerous but including version numbers
-// unfortunately causes trouble on some linux/unix systems.
-const LuaLibName = 'lua';
+const
+{$IFDEF UNIX}
+  {$IFDEF DARWIN}
+    LuaLibName = 'lua';
+  {$ELSE}
+    LuaLibName = 'lua5.1.so';
+  {$ENDIF}
+{$ELSE}
+  LuaLibName = 'lua.dll';
+{$ENDIF}
+
 
 (*****************************************************************************)
 (*                               luaconfig.h                                 *)