From bde13aaee120ee4f91a02b6cfe022e9317785720 Mon Sep 17 00:00:00 2001 From: Shahms King Date: Mon, 18 May 2026 11:15:35 -0700 Subject: [PATCH] prevent macro redefinition errors with newer clang versions --- nth/base/platform.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nth/base/platform.h b/nth/base/platform.h index 7a67418..1849469 100644 --- a/nth/base/platform.h +++ b/nth/base/platform.h @@ -162,11 +162,11 @@ #endif #if defined(__has_feature) -#if __has_feature(address_sanitizer) -#define __SANITIZE_ADDRESS__ +#if __has_feature(address_sanitizer) and not defined(__SANITIZE_ADDRESS__) +#define __SANITIZE_ADDRESS__ 1 #endif -#if __has_feature(thread_sanitizer) -#define __SANITIZE_THREAD__ +#if __has_feature(thread_sanitizer) and not defined(__SANITIZE_THREAD__) +#define __SANITIZE_THREAD__ 1 #endif #endif