The features.h was incomplete and did not include the necessary feature
test macro definitions
Signed-off-by: Marco Schlumpp <marco@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #32
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
+++ /dev/null
-#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