--- a/hedgewars/ArgParsers.pas Tue Dec 01 23:40:38 2015 +0300
+++ b/hedgewars/ArgParsers.pas Wed Dec 02 13:39:16 2015 +0300
@@ -23,10 +23,15 @@
procedure GetParams;
{$IFDEF HWLIBRARY}
+{$IFDEF WIN32} // FIXME: what is the correct condition?
+var operatingsystem_parameter_argc: LongInt; external;
+ operatingsystem_parameter_argv: pointer; external;
+ operatingsystem_parameter_envp: pointer; external;
+{$ELSE}
var operatingsystem_parameter_argc: LongInt = 0; export;
operatingsystem_parameter_argv: pointer = nil; export;
operatingsystem_parameter_envp: pointer = nil; export;
-
+{$ENDIF}
function ParamCount: LongInt;
function ParamStr(i: LongInt): shortstring;
{$ENDIF}