# HG changeset patch # User smxx # Date 1267626948 0 # Node ID 34efcb0681d8434f2c8aa4c5a8ce69b14247e951 # Parent b7a63650329800fa0ba9de9c5ef9944687adcc1c Engine: * Reverted lookup name for Lua as the new version didn't work everywhere as well diff -r b7a636503298 -r 34efcb0681d8 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 *)