Skip to content

Commit a251907

Browse files
committed
Backward compatibility to the Notification library
Former-commit-id: b4d38ef
1 parent 8df1fce commit a251907

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Tools/Notification/PyTools.Notification.Channel.pas

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ implementation
207207
System.Rtti,
208208
PyTools.Exception;
209209

210+
{$IFDEF VER340}
210211
type
211212
//For backward compatibility
212213
TCustomAttributeClass = class of TCustomAttribute;
@@ -216,7 +217,9 @@ TRttiObjectHelper = class helper for TRttiObject
216217
function GetAttribute(AAttrClass: TCustomAttributeClass): TCustomAttribute; overload;
217218
function GetAttribute<T: TCustomAttribute>: T; overload; inline;
218219
end;
220+
{$ENDIF VER340}
219221

222+
{$IFDEF VER340}
220223
{ TRttiObjectHelper }
221224

222225
function TRttiObjectHelper.GetAttribute(
@@ -234,6 +237,7 @@ function TRttiObjectHelper.GetAttribute<T>: T;
234237
begin
235238
Result := T(GetAttribute(T));
236239
end;
240+
{$ENDIF VER340}
237241

238242
{ RequestChannelAttribute }
239243

0 commit comments

Comments
 (0)