فهرست منبع

Merge pull request #5306 from Kelimion/fix-3449

Define empty `gb_no_asan` if VS < 2022
Jeroen van Rijn 3 ماه پیش
والد
کامیت
d1fc731a3a
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      src/gb/gb.h

+ 5 - 1
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