Skip to content

Commit c2af21c

Browse files
committed
Delphi Rio compatibility
1 parent 840864b commit c2af21c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Source/Services/SimpleNotificationService/Custom/AWS.OpenSSL.pas

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ procedure RaiseOpenSSLError(const AMessage :string = '');
7474
ErrMsg, FullMsg: string;
7575
begin
7676
ErrCode := ERR_get_error;
77+
{$IF CompilerVersion >= 34}
7778
ErrMsg := string(AnsiString(ERR_error_string(ErrCode, nil)));
79+
{$ELSE}
80+
ErrMsg := string(ERR_error_string(ErrCode, nil));
81+
{$ENDIF}
7882
if AMessage = '' then
7983
FullMsg := ErrMsg
8084
else

0 commit comments

Comments
 (0)