Browse Source

* declare pointers to variants only if the variant feature is available

git-svn-id: trunk@37809 -
florian 7 years ago
parent
commit
82f452bb7c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      rtl/java/jsystemh_types.inc

+ 2 - 0
rtl/java/jsystemh_types.inc

@@ -486,8 +486,10 @@ Type
   PDateTime           = ^TDateTime;
   PDateTime           = ^TDateTime;
 {$endif}
 {$endif}
   PError              = ^TError;
   PError              = ^TError;
+{$ifdef FPC_HAS_FEATURE_VARIANTS}
   PVariant            = ^Variant;
   PVariant            = ^Variant;
   POleVariant         = ^OleVariant;
   POleVariant         = ^OleVariant;
+{$endif FPC_HAS_FEATURE_VARIANTS}
 
 
   PWideChar           = ^WideChar;
   PWideChar           = ^WideChar;
   PPWideChar          = ^PWideChar;
   PPWideChar          = ^PWideChar;