From 3e68899d301be52b36c8d91efc1ab1be0a69fec6 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Thu, 9 Mar 2023 12:03:02 -0500 Subject: [PATCH] Fix macro --- include/simdjson/portability.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/simdjson/portability.h b/include/simdjson/portability.h index cec14e6d9..324f03860 100644 --- a/include/simdjson/portability.h +++ b/include/simdjson/portability.h @@ -155,7 +155,9 @@ use a 64-bit target such as x64, 64-bit ARM or 64-bit PPC.") #define SIMDJSON_NO_SANITIZE_MEMORY __attribute__((no_sanitize("memory"))) # endif // if __has_feature(memory_sanitizer) #endif // defined(__has_feature) -#else +#endif +// make sure it is defined as 'nothing' if it is unapplicable. +#ifndef SIMDJSON_NO_SANITIZE_MEMORY #define SIMDJSON_NO_SANITIZE_MEMORY #endif