summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-01-29 12:16:36 -0500
committerTingPing <tingping@tingping.se>2014-01-29 12:16:36 -0500
commit6487e1b39130661afb0098e11fc1384340bc6fa7 (patch)
tree7e0b40b5cc4a688725cb35e5210afaa87071e2a3 /src
parente962039f8362a69917778ef056c7de8dfdccb8e4 (diff)
osx: Silence openssl deprecated warnings
Diffstat (limited to 'src')
-rw-r--r--src/common/hexchat.h7
-rw-r--r--src/common/ssl.c5
2 files changed, 12 insertions, 0 deletions
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 <openssl/ssl.h>		  /* SSL_() */
 #include <openssl/err.h>		  /* ERR_() */