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