Skip to content

Commit

Permalink
Fixed OS4 conditional in https example to work with all compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
Futaura committed Mar 29, 2020
1 parent f05027d commit 3a86559
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/https.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,15 @@ static BOOL Init(void)
FPrintf(GetStdErr(), "Couldn't open AmiSSL!\n");
else if (!GETINTERFACE(IAmiSSL, AmiSSLBase))
FPrintf(GetStdErr(), "Couldn't get AmiSSL interface!\n");
else if (InitAmiSSL(AmiSSL_ErrNoPtr, &errno,
#if defined(__amigaos4__)
else if (InitAmiSSL(AmiSSL_ErrNoPtr, &errno,
AmiSSL_ISocket, ISocket,
TAG_DONE) != 0)
#else
else if (InitAmiSSL(AmiSSL_ErrNoPtr, &errno,
AmiSSL_SocketBase, SocketBase,
#endif
TAG_DONE) != 0)
#endif
FPrintf(GetStdErr(), "Couldn't initialize AmiSSL!\n");
else
AmiSSLInitialized = TRUE;
Expand Down

0 comments on commit 3a86559

Please sign in to comment.