Skip to content

Commit 69a4a9e

Browse files
author
delphidabbler
committed
Updated PJStreamWrapper unit from Stream Extension Classes to v3.1.2 of 12 Jan 2014
1 parent bb88ae6 commit 69a4a9e

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

Src/3rdParty/PJStreamWrapper.pas

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
44
* obtain one at http://mozilla.org/MPL/2.0/
55
*
6-
* Copyright (C) 2000-2013, Peter Johnson (www.delphidabbler.com).
6+
* Copyright (C) 2000-2014, Peter Johnson (www.delphidabbler.com).
77
*
8-
* $Rev$
9-
* $Date$
8+
* $Rev: 1515 $
9+
* $Date: 2014-01-11 02:36:28 +0000 (Sat, 11 Jan 2014) $
1010
*
1111
* Defines the TPJStreamWrapper class. This is a base class for descendant
1212
* classes that "wrap" a TStream class to provide some form of filter or
@@ -22,14 +22,17 @@
2222
{$UNDEF SUPPORTS_TSTREAM64}
2323
{$UNDEF RTLNAMESPACES}
2424
{$IFDEF CONDITIONALEXPRESSIONS}
25-
{$IF CompilerVersion >= 14.0} // >= Delphi 6
26-
{$DEFINE SUPPORTS_TSTREAM64}
25+
{$IF CompilerVersion >= 24.0} // Delphi XE3 and later
26+
{$LEGACYIFEND ON} // NOTE: this must come before all $IFEND directives
27+
{$IFEND}
28+
{$IF CompilerVersion >= 23.0} // Delphi XE2 and later
29+
{$DEFINE RTLNAMESPACES}
2730
{$IFEND}
28-
{$IF CompilerVersion >= 18.0} // >= Delphi 2006
31+
{$IF CompilerVersion >= 18.0} // Delphi 2006 and later
2932
{$DEFINE SUPPORTS_STRICT}
3033
{$IFEND}
31-
{$IF CompilerVersion >= 23.0} // >= Delphi XE2
32-
{$DEFINE RTLNAMESPACES}
34+
{$IF CompilerVersion >= 14.0} // Delphi 6 and later
35+
{$DEFINE SUPPORTS_TSTREAM64}
3336
{$IFEND}
3437
{$ENDIF}
3538

0 commit comments

Comments
 (0)