From 6487e1b39130661afb0098e11fc1384340bc6fa7 Mon Sep 17 00:00:00 2001 From: TingPing Date: Wed, 29 Jan 2014 12:16:36 -0500 Subject: [PATCH] osx: Silence openssl deprecated warnings --- plugins/checksum/checksum.c | 5 +++++ plugins/fishlim/fish.c | 5 +++++ src/common/hexchat.h | 7 +++++++ src/common/ssl.c | 5 +++++ 4 files changed, 22 insertions(+) diff --git a/plugins/checksum/checksum.c b/plugins/checksum/checksum.c index a4cadc19..6ace8543 100644 --- a/plugins/checksum/checksum.c +++ b/plugins/checksum/checksum.c @@ -20,6 +20,11 @@ * THE SOFTWARE. */ +#ifdef __APPLE__ +#define __AVAILABILITYMACROS__ +#define DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER +#endif + #include #include #include diff --git a/plugins/fishlim/fish.c b/plugins/fishlim/fish.c index d4f7b118..1d2d1ce7 100644 --- a/plugins/fishlim/fish.c +++ b/plugins/fishlim/fish.c @@ -22,6 +22,11 @@ */ +#ifdef __APPLE__ +#define __AVAILABILITYMACROS__ +#define DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER +#endif + #include #include #include diff --git a/src/common/hexchat.h b/src/common/hexchat.h index 63d0fbed..219c4394 100644 --- a/src/common/hexchat.h +++ b/src/common/hexchat.h @@ -31,6 +31,13 @@ #ifndef HEXCHAT_H #define HEXCHAT_H +#ifdef USE_OPENSSL +#ifdef __APPLE__ +#define __AVAILABILITYMACROS__ +#define DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER +#endif +#endif + #include "history.h" #ifndef HAVE_SNPRINTF diff --git a/src/common/ssl.c b/src/common/ssl.c index 742da619..d036fb66 100644 --- a/src/common/ssl.c +++ b/src/common/ssl.c @@ -17,6 +17,11 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#ifdef __APPLE__ +#define __AVAILABILITYMACROS__ +#define DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER +#endif + #include "inet.h" /* make it first to avoid macro redefinitions */ #include /* SSL_() */ #include /* ERR_() */