Skip to content

Commit

Permalink
Check for OSX when checking for clang.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoakimSoderberg committed Jan 22, 2014
1 parent f1715b4 commit e212c54
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bufferevent_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion sample/openssl_hostname_validation.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion test/regress_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e212c54

Please sign in to comment.