[Issue #74] Added __clang__ checks on assert.h __GNUC__ ifdefs for better source searching

This commit is contained in:
Snaipe 2015-11-16 20:41:32 +01:00
parent 0722fd4c99
commit 6917eb4bda
2 changed files with 2 additions and 2 deletions

View file

@ -224,7 +224,7 @@
// Safe array comparison assertions
# if defined(__GNUC__) || defined(__cplusplus)
# if defined(__GNUC__) || defined(__clang__) || defined(__cplusplus)
# ifdef __cplusplus
# define CR_ARR_COMPARE_(A, B, Size, Cmp, Result) \

View file

@ -125,7 +125,7 @@ CR_END_C_API
# define CR_FAIL_ABORT_ criterion_abort_test
# define CR_FAIL_CONTINUES_ criterion_continue_test
# ifdef __GNUC__
# if defined(__GNUC__) || defined(__clang__)
// We disable the format-zero-length warning because we use the validity of
// asprintf(out, "") for empty assertion messages
# pragma GCC diagnostic ignored "-Wformat-zero-length"