Ver código fonte

Use MSWindows instead of Win32 conditional

git-svn-id: trunk@16760 -
pierre 14 anos atrás
pai
commit
7d5b632896
2 arquivos alterados com 10 adições e 8 exclusões
  1. 5 4
      tests/units/popuperr.pp
  2. 5 4
      tests/units/win32err.pp

+ 5 - 4
tests/units/popuperr.pp

@@ -20,10 +20,11 @@ interface
 
 implementation
 
-{$ifdef win32}
+{ mswindows is defined for win32 and win64 targets }
+{$ifdef mswindows}
 uses
   windows;
-{$endif win32}
+{$endif mswindows}
 
 {$IFDEF OS2}
 function _DosError (Error: longint): longint; cdecl;
@@ -31,12 +32,12 @@ function _DosError (Error: longint): longint; cdecl;
 {$ENDIF OS2}
 
 begin
-{$ifdef win32}
+{$ifdef mswindows}
   SetErrorMode(
     SEM_FAILCRITICALERRORS or
     SEM_NOGPFAULTERRORBOX or
     SEM_NOOPENFILEERRORBOX);
-{$endif win32}
+{$endif mswindows}
 {$IFDEF OS2}
   if os_Mode = osOS2 then _DosError (0);
 {$ENDIF OS2}

+ 5 - 4
tests/units/win32err.pp

@@ -20,16 +20,17 @@ interface
 
 implementation
 
-{$ifdef win32}
+{ mswindows is defined for win32 and win64 targets }
+{$ifdef mswindows}
 uses
   windows;
-{$endif win32}
+{$endif mswindows}
 
 begin
-{$ifdef win32}
+{$ifdef mswindows}
   SetErrorMode(
     SEM_FAILCRITICALERRORS or
     SEM_NOGPFAULTERRORBOX or
     SEM_NOOPENFILEERRORBOX);
-{$endif win32}
+{$endif mswindows}
 end.