summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2012-11-27 23:50:37 +0000
committerattilamolnar <attilamolnar@hush.com>2012-11-28 17:10:13 +0100
commit48c73ade31e3d08cd00dd0ade56f5bcc1623b00a (patch)
tree22207e4657052559988aada25d04e190d7b4f58b /src/modules/extra
parentabd2ac5ca85811795d4e0e03d777924cc50c66ff (diff)
Silence OpenSSL deprecation warnings on OS X.
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp
index 90ad3996b..b741c67b5 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -21,7 +21,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-
+ /* HACK: This prevents OpenSSL on OS X 10.7 and later from spewing deprecation
+ * warnings for every single function call. As far as I (SaberUK) know, Apple
+ * have no plans to remove OpenSSL so this warning just causes needless spam.
+ */
+#ifdef __APPLE__
+# define __AVAILABILITYMACROS__
+# define DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER
+#endif
+
#include "inspircd.h"
#include <openssl/ssl.h>
#include <openssl/err.h>