Check if we're on OSX before disabling deprecation in le-proxy

This commit is contained in:
Joakim Söderberg 2014-01-21 11:35:21 +01:00
parent 4e1439588f
commit 8b40a5b08f

View File

@ -6,7 +6,7 @@
*/ */
// Get rid of OSX 10.7 and greater deprecation warnings. // Get rid of OSX 10.7 and greater deprecation warnings.
#ifdef __clang__ #if defined(__APPLE__) && defined(__clang__)
#pragma clang diagnostic ignored "-Wdeprecated-declarations" #pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif #endif