Browse Source

* enable variant again

peter 21 years ago
parent
commit
4fcace5406
1 changed files with 10 additions and 3 deletions
  1. 10 3
      rtl/objpas/typinfo.pp

+ 10 - 3
rtl/objpas/typinfo.pp

@@ -29,9 +29,9 @@ unit typinfo;
 // temporary types:
 // temporary types:
 
 
     type
     type
-//{$ifndef HASVARIANT}
+{$ifndef HASVARIANT}
        Variant      = Pointer;
        Variant      = Pointer;
-//{$endif}
+{$endif}
 
 
 {$MINENUMSIZE 1   this saves a lot of memory }
 {$MINENUMSIZE 1   this saves a lot of memory }
        // if you change one of the following enumeration types
        // if you change one of the following enumeration types
@@ -1068,7 +1068,11 @@ end;
 Function GetVariantProp(Instance : TObject;PropInfo : PPropInfo): Variant;
 Function GetVariantProp(Instance : TObject;PropInfo : PPropInfo): Variant;
 begin
 begin
 {$warning GetVariantProp not implemented}
 {$warning GetVariantProp not implemented}
+{$ifdef HASVARIANT}
+  Result:=Null;
+{$else}
   Result:=nil;
   Result:=nil;
+{$endif}
 end;
 end;
 
 
 
 
@@ -1303,7 +1307,10 @@ end;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.20  2003-12-24 22:27:13  peter
+  Revision 1.21  2004-02-20 15:55:26  peter
+    * enable variant again
+
+  Revision 1.20  2003/12/24 22:27:13  peter
     * removed assembler
     * removed assembler
     * cleanup
     * cleanup