浏览代码

Use MSWindows instead of Win32 conditional

git-svn-id: trunk@16760 -
pierre 14 年之前
父节点
当前提交
7d5b632896
共有 2 个文件被更改,包括 10 次插入8 次删除
  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.