# HG changeset patch
# User koda
# Date 1461442635 14400
# Node ID 5ce2cf06b5310f6813c53b7bdd47a1dca2e1a156
# Parent  8f5db41471f4fba77377d424d77c80c247066ae6
Set cdecl on exported functions and hide them from pas2c

diff -r 8f5db41471f4 -r 5ce2cf06b531 hedgewars/ArgParsers.pas
--- a/hedgewars/ArgParsers.pas	Sat Apr 23 13:52:30 2016 -0400
+++ b/hedgewars/ArgParsers.pas	Sat Apr 23 16:17:15 2016 -0400
@@ -23,9 +23,9 @@
 
 procedure GetParams;
 {$IFDEF HWLIBRARY}
-var operatingsystem_parameter_argc: LongInt = 0; export;
-    operatingsystem_parameter_argv: pointer = nil; export;
-    operatingsystem_parameter_envp: pointer = nil; export;
+var operatingsystem_parameter_argc: LongInt = 0; {$IFNDEF PAS2C}cdecl; export;{$ENDIF}
+    operatingsystem_parameter_argv: pointer = nil; {$IFNDEF PAS2C}cdecl; export;{$ENDIF}
+    operatingsystem_parameter_envp: pointer = nil; {$IFNDEF PAS2C}cdecl; export;{$ENDIF}
 
 function ParamCount: LongInt;
 function ParamStr(i: LongInt): shortstring;