Browse Source

* adapted for use with DOS

florian 26 years ago
parent
commit
c57f9f07a7
1 changed files with 8 additions and 2 deletions
  1. 8 2
      tests/testrtti.pp

+ 8 - 2
tests/testrtti.pp

@@ -1,6 +1,12 @@
 Program testrtti;
 
-Uses Typinfo,classes;
+{$M+}
+
+Uses
+{$ifdef go32v2}
+dpmiexcp,
+{$endif}
+Typinfo;
 
 Const TypeNames : Array [TTYpeKind] of string[15] = 
                     ('Unknown','Integer','Char','Enumeration',
@@ -13,7 +19,7 @@ Const OrdinalTypes = [tkInteger,tkChar,tkENumeration,tkbool];
 Type
       TMyEnum = (meFirst,meSecond,meThird);
 
-Type TMyTestObject = Class(TPersistent)
+Type TMyTestObject = Class
        Private
        FBoolean  : Boolean;
        FByte     : Byte;