osx: Silence openssl deprecated warnings

This commit is contained in:
TingPing 2014-01-29 12:16:36 -05:00
parent e962039f83
commit 6487e1b391
4 changed files with 22 additions and 0 deletions

View File

@ -20,6 +20,11 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#ifdef __APPLE__
#define __AVAILABILITYMACROS__
#define DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER
#endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -22,6 +22,11 @@
*/ */
#ifdef __APPLE__
#define __AVAILABILITYMACROS__
#define DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <openssl/blowfish.h> #include <openssl/blowfish.h>

View File

@ -31,6 +31,13 @@
#ifndef HEXCHAT_H #ifndef HEXCHAT_H
#define 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" #include "history.h"
#ifndef HAVE_SNPRINTF #ifndef HAVE_SNPRINTF

View File

@ -17,6 +17,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * 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 "inet.h" /* make it first to avoid macro redefinitions */
#include <openssl/ssl.h> /* SSL_() */ #include <openssl/ssl.h> /* SSL_() */
#include <openssl/err.h> /* ERR_() */ #include <openssl/err.h> /* ERR_() */