hedgewars/LuaPas.pas
changeset 2922 34efcb0681d8
parent 2920 5cf48744a700
child 2924 908851e59958
--- 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                                 *)