diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-06-10 13:20:01 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-06-10 13:20:01 +0200 |
| commit | 6cb2408d70a1e073825ede6fa5f867715a0c7fc3 (patch) | |
| tree | f4b107270c075ba763f91314b2a03668d3cce923 /src | |
| parent | d08e14fc3c62511e31e08284f832531deb2f4beb (diff) | |
Define empty `gb_no_asan` if VS < 2022
Diffstat (limited to 'src')
| -rw-r--r-- | src/gb/gb.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gb/gb.h b/src/gb/gb.h index a1b659637..6ce8626c0 100644 --- a/src/gb/gb.h +++ b/src/gb/gb.h @@ -497,7 +497,11 @@ typedef i32 b32; // NOTE(bill): Prefer this!!! #if !defined(gb_no_asan) #if defined(_MSC_VER) - #define gb_no_asan __declspec(no_sanitize_address) + #if _MSC_VER >= 1930 + #define gb_no_asan __declspec(no_sanitize_address) + #else + #define gb_no_asan + #endif #else #define gb_no_asan __attribute__((disable_sanitizer_instrumentation)) #endif |