From: Marco Schlumpp Date: Thu, 8 Dec 2022 10:37:06 +0000 (+0100) Subject: Remove outdated vendored features.h X-Git-Tag: RELEASE-0.12.0~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e9e09e670bd483a2d155d830845dd3c6817171c9;p=unikraft%2Flibs%2Fmusl.git Remove outdated vendored features.h The features.h was incomplete and did not include the necessary feature test macro definitions Signed-off-by: Marco Schlumpp Reviewed-by: Stefan Jumarea Approved-by: Razvan Deaconescu Tested-by: Unikraft CI GitHub-Closes: #32 --- diff --git a/Makefile.uk b/Makefile.uk index 1bd62cb..3eaf457 100644 --- a/Makefile.uk +++ b/Makefile.uk @@ -153,6 +153,7 @@ LIBMUSL_CORE_HDRS-y += $(LIBMUSL)/include/sys/file.h LIBMUSL_CORE_HDRS-y += $(LIBMUSL)/include/alloca.h LIBMUSL_CORE_HDRS-y += $(LIBMUSL)/include/stdbool.h LIBMUSL_CORE_HDRS-y += $(LIBMUSL)/include/limits.h +LIBMUSL_CORE_HDRS-y += $(LIBMUSL)/include/features.h LIBMUSL_CORE_HDRS-y += $(LIBMUSL)/include/assert.h LIBMUSL_CORE_HDRS-y += $(LIBMUSL)/include/sysexits.h diff --git a/include/features.h b/include/features.h deleted file mode 100644 index 77032e8..0000000 --- a/include/features.h +++ /dev/null @@ -1,23 +0,0 @@ -#ifndef _FEATURES_H -#define _FEATURES_H - -#if __STDC_VERSION__ >= 199901L -#define __restrict restrict -#elif !defined(__GNUC__) -#define __restrict -#endif - -#if __STDC_VERSION__ >= 199901L || defined(__cplusplus) -#define __inline inline -#elif !defined(__GNUC__) -#define __inline -#endif - -#if __STDC_VERSION__ >= 201112L -#elif defined(__GNUC__) -#define _Noreturn __attribute__((__noreturn__)) -#else -#define _Noreturn -#endif - -#endif