Check for OSX when checking for clang.

This commit is contained in:
Joakim Soderberg 2014-01-22 13:19:49 +01:00
parent f1715b471d
commit e212c5486d
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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