From e212c5486dad4811f5a6842ce32e99d43e0c1956 Mon Sep 17 00:00:00 2001 From: Joakim Soderberg Date: Wed, 22 Jan 2014 13:19:49 +0100 Subject: [PATCH] Check for OSX when checking for clang. --- bufferevent_openssl.c | 2 +- sample/openssl_hostname_validation.c | 2 +- test/regress_ssl.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bufferevent_openssl.c b/bufferevent_openssl.c index 5f32e85c..423b34f1 100644 --- a/bufferevent_openssl.c +++ b/bufferevent_openssl.c @@ -25,7 +25,7 @@ */ // Get rid of OSX 10.7 and greater deprecation warnings. -#ifdef __clang__ +#if defined(__APPLE__) && defined(__clang__) #pragma clang diagnostic ignored "-Wdeprecated-declarations" #endif diff --git a/sample/openssl_hostname_validation.c b/sample/openssl_hostname_validation.c index 6ab94f51..b5adc67b 100644 --- a/sample/openssl_hostname_validation.c +++ b/sample/openssl_hostname_validation.c @@ -35,7 +35,7 @@ SOFTWARE. */ // Get rid of OSX 10.7 and greater deprecation warnings. -#ifdef __clang__ +#if defined(__APPLE__) && defined(__clang__) #pragma clang diagnostic ignored "-Wdeprecated-declarations" #endif diff --git a/test/regress_ssl.c b/test/regress_ssl.c index e72b8dbf..c2113414 100644 --- a/test/regress_ssl.c +++ b/test/regress_ssl.c @@ -25,7 +25,7 @@ */ // Get rid of OSX 10.7 and greater deprecation warnings. -#ifdef __clang__ +#if defined(__APPLE__) && defined(__clang__) #pragma clang diagnostic ignored "-Wdeprecated-declarations" #endif