Move __has_builtin() fallback define to compiler.h

This commit is contained in:
Nick Terrell
2020-09-24 15:51:08 -07:00
parent 4d63ee57f5
commit 260fc75028
2 changed files with 5 additions and 4 deletions
-4
View File
@@ -39,10 +39,6 @@ extern "C" {
# define MEM_STATIC static /* this version may generate warnings for unused static functions; disable the relevant warning */
#endif
#ifndef __has_builtin
# define __has_builtin(x) 0 /* compat. with non-clang compilers */
#endif
/* code only tested on 32 and 64 bits systems */
MEM_STATIC void MEM_check(void) { DEBUG_STATIC_ASSERT((sizeof(size_t)==4) || (sizeof(size_t)==8)); }