From: Joakim Söderberg Date: Tue, 21 Jan 2014 10:35:21 +0000 (+0100) Subject: Check if we're on OSX before disabling deprecation in le-proxy X-Git-Tag: release-2.1.4-alpha~42^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b40a5b08f1cc9a84a74d89e262bf4463a4e8051;p=libevent Check if we're on OSX before disabling deprecation in le-proxy --- diff --git a/sample/le-proxy.c b/sample/le-proxy.c index 0c918d7a..30e0a5f6 100644 --- a/sample/le-proxy.c +++ b/sample/le-proxy.c @@ -6,7 +6,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