Przeglądaj źródła

* don't use $MINSTACKSIZE and $MAXSTACKSIZE on non-Windows instead of disabling the warning

Sven/Sarah Barth 6 miesięcy temu
rodzic
commit
2a6fb32974
1 zmienionych plików z 2 dodań i 4 usunięć
  1. 2 4
      compiler/pp.pas

+ 2 - 4
compiler/pp.pas

@@ -219,10 +219,7 @@ program pp;
 {$endif support_mmx}
 
 
-{ Don't care about minstacksize or maxstacksize not beeing supported by current OS }
-{$WARN 2077 OFF}
-{$WARN 2078 OFF}
-
+{$ifdef windows}
 {$ifdef win32}
   { 256 MB stack }
   { under windows the stack can't grow }
@@ -238,6 +235,7 @@ program pp;
     {$MINSTACKSIZE 1000000}
   {$endif win64}
 {$endif win32}
+{$endif windows}
 
 uses
 {$ifdef heaptrc}