Browse Source

* Move HRESULT to system unit

michael 5 years ago
parent
commit
2248f6abe2
2 changed files with 1 additions and 2 deletions
  1. 1 0
      packages/rtl/system.pas
  2. 0 2
      packages/rtl/types.pas

+ 1 - 0
packages/rtl/system.pas

@@ -50,6 +50,7 @@ const
                                Base types
                                Base types
 *****************************************************************************}
 *****************************************************************************}
 type
 type
+  HRESULT = Integer; // For Delphi compatibility
   Int8 = ShortInt;
   Int8 = ShortInt;
   UInt8 = Byte;
   UInt8 = Byte;
   Int16 = SmallInt;
   Int16 = SmallInt;

+ 0 - 2
packages/rtl/types.pas

@@ -47,8 +47,6 @@ type
     Left, Top, Right, Bottom: Integer;
     Left, Top, Right, Bottom: Integer;
   end;
   end;
   
   
-  HRESULT = Integer;
-
 function EqualRect(const r1,r2 : TRect) : Boolean;
 function EqualRect(const r1,r2 : TRect) : Boolean;
 function Rect(Left, Top, Right, Bottom : Integer) : TRect;
 function Rect(Left, Top, Right, Bottom : Integer) : TRect;
 function Bounds(ALeft, ATop, AWidth, AHeight : Integer) : TRect;
 function Bounds(ALeft, ATop, AWidth, AHeight : Integer) : TRect;