diff options
Diffstat (limited to 'libtiff/tiffiop.h')
-rw-r--r-- | libtiff/tiffiop.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libtiff/tiffiop.h b/libtiff/tiffiop.h index d44e76a5..b4c84a2a 100644 --- a/libtiff/tiffiop.h +++ b/libtiff/tiffiop.h @@ -312,11 +312,15 @@ typedef size_t TIFFIOSize_t; #define _TIFF_off_t off_t #endif -#if defined(__clang__) && (__clang_major__ >= 4 || (__clang_major__ == 3 && __clang_minor__ >= 8)) +#if defined(__has_attribute) +#if __has_attribute(no_sanitize) #define TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW __attribute__((no_sanitize("unsigned-integer-overflow"))) #else #define TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW #endif +#else +#define TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW +#endif #if defined(__cplusplus) |