فهرست منبع

* disable RTTI declarations if RTTI feature is disabled

git-svn-id: trunk@39247 -
svenbarth 7 سال پیش
والد
کامیت
44b15350fb
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      rtl/inc/system.inc

+ 2 - 0
rtl/inc/system.inc

@@ -468,6 +468,7 @@ function aligntoqword(p : pointer) : pointer;inline;
                   Run-Time Type Information (RTTI) declarations
 ****************************************************************************}
 
+{$ifdef FPC_HAS_FEATURE_RTTI}
 type
   PTypeKind = ^TTypeKind;
 
@@ -475,6 +476,7 @@ const
   // all potentially managed types
   tkManagedTypes   = [tkAstring,tkWstring,tkUstring,tkArray,
                      tkObject,tkRecord,tkDynArray,tkInterface,tkVariant];
+{$endif FPC_HAS_FEATURE_RTTI}
 
 {*****************************************************************************
                         Dynamic Array support