Skip to content
Permalink
Browse files

Fix #ifdefs

  • Loading branch information...
chris-y committed Mar 13, 2019
1 parent ba106b1 commit 9e9d24a8d594909b1755bb0d5b9f1bda43d88a0d
Showing with 8 additions and 6 deletions.
  1. +4 −2 lib/amigaos.c
  2. +4 −4 lib/amigaos.h
@@ -25,7 +25,7 @@
#ifdef __AMIGA__
#include "amigaos.h"

#ifndef USE_AMISSL
#if defined(HAVE_PROTO_BSDSOCKET_H) && !defined(USE_AMISSL)
#include <amitcp/socketbasetags.h>

struct Library *SocketBase = NULL;
@@ -74,7 +74,9 @@ bool Curl_amiga_init()
ADD2EXIT(Curl_amiga_cleanup, -50);
#endif

#else /* USE_AMISSL */
#endif /* HAVE_PROTO_BSDSOCKET_H */

#ifdef USE_AMISSL
void Curl_amiga_X509_free(X509 *a)
{
X509_free(a);
@@ -23,9 +23,7 @@
***************************************************************************/
#include "curl_setup.h"

#ifdef __AMIGA__

#ifndef USE_AMISSL
#if defined(__AMIGA__) && defined(HAVE_BSDSOCKET_H) && !defined(USE_AMISSL)

bool Curl_amiga_init();
void Curl_amiga_cleanup();
@@ -35,10 +33,12 @@ void Curl_amiga_cleanup();
#define Curl_amiga_init() 1
#define Curl_amiga_cleanup() Curl_nop_stmt

#endif

#ifdef USE_AMISSL
#include <openssl/x509v3.h>
void Curl_amiga_X509_free(X509 *a);
#endif /* USE_AMISSL */

#endif /* __AMIGA__ */
#endif /* HEADER_CURL_AMIGAOS_H */

0 comments on commit 9e9d24a

Please sign in to comment.
You can’t perform that action at this time.