summaryrefslogtreecommitdiff
path: root/source/dng_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/dng_utils.h')
-rw-r--r--source/dng_utils.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/dng_utils.h b/source/dng_utils.h
index c06cfd7..d74ffb4 100644
--- a/source/dng_utils.h
+++ b/source/dng_utils.h
@@ -1142,9 +1142,11 @@ inline int32 Mulsh86 (int32 x, int32 y)
// This is the ACM standard 30 bit generator:
// x' = (x * 16807) mod 2^31-1
-#if defined(__clang__) && !defined(__APPLE__)
+#if defined(__clang__) && defined(__has_attribute)
+#if __has_attribute(no_sanitize)
__attribute__((no_sanitize("unsigned-integer-overflow")))
#endif
+#endif
inline uint32 DNG_Random (uint32 seed)
{