Set cdecl on exported functions and hide them from pas2c
authorkoda
Sat, 23 Apr 2016 16:17:15 -0400
changeset 11685 5ce2cf06b531
parent 11684 8f5db41471f4
child 11686 8fca9fd31357
Set cdecl on exported functions and hide them from pas2c
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;