From 3a8655972f181706948d638e5cc60f234b3d53d9 Mon Sep 17 00:00:00 2001 From: Futaura Date: Sun, 29 Mar 2020 12:05:40 +0100 Subject: [PATCH] Fixed OS4 conditional in https example to work with all compilers --- test/https.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/https.c b/test/https.c index 3a1477fe0..7acf42d82 100644 --- a/test/https.c +++ b/test/https.c @@ -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;