X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/67b5031ec6d160b5cae425466a34d1be3b211dd4..c91413e6acbc8d157ff52ceb8cd78cee97403584:/utils/macros.h?ds=sidebyside diff --git a/utils/macros.h b/utils/macros.h index 954ed0c..95d0ddb 100644 --- a/utils/macros.h +++ b/utils/macros.h @@ -110,7 +110,7 @@ # define EXECL_LIKE(ntrail) __attribute__((__sentinel__(ntrail))) #endif -#if GCC_VERSION_P(2, 7) +#if GCC_VERSION_P(2, 7) || CLANG_VERSION_P(0, 0) # define LAUNDER(x) \ ({ __typeof__(x) _y; __asm__("" : "=g"(_y) : "0"(x)); _y; }) # define RELAX do __asm__ __volatile__("" ::: "memory"); while (0) @@ -133,7 +133,9 @@ # define MUFFLE_WARNINGS_STMT(warns, body) \ do { MLIB__MUFFLE_WARNINGS(warns, body) } while (0) -#elif GCC_VERSION_P(4, 6) +#endif + +#if GCC_VERSION_P(4, 6) /* --- Diagnostic suppression in GCC: a tale of woe --- * *