ms/va: make ancient gcc < 8 happy

Change-Id: Ib94b9b073a0d2af84ce5791b5f40c63cd7ef9329
This commit is contained in:
Eric
2023-08-30 11:54:12 +02:00
parent cca5d93f66
commit 287ae681b7

View File

@@ -42,6 +42,10 @@
#define MULTI_VER_TARGET_ATTR_CLANGONLY
#endif
/* ancient gcc < 8 has no attribute, clang always pretends to be gcc 4 */
#if !defined(__clang__) && __GNUC__ < 8
#define NO_UBSAN __attribute__((no_sanitize_undefined))
#else
#if defined(__has_attribute)
#if __has_attribute(no_sanitize)
#define NO_UBSAN __attribute__((no_sanitize("undefined")))
@@ -49,6 +53,7 @@
#else
#define NO_UBSAN
#endif
#endif
#define SYNC_SEARCH_RANGE 30
const int d_OSR(4);