summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKinan Hakim <kinan@google.com>2016-01-25 14:02:32 +0100
committerKinan Hakim <kinan@google.com>2016-01-25 14:02:32 +0100
commitc3041f8cd5dfcdaa2b11e15345da1f37891cf151 (patch)
tree2e8392a655ffe76ded000499dbb33f661384fec0
parentfedcde0a2b96647a8da12b8c33e91e29a0b098c5 (diff)
downloaddng_sdk-c3041f8cd5dfcdaa2b11e15345da1f37891cf151.tar.gz
Follow up fix for ifdef
-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)
{