Kaynağa Gözat

add attribute_unused and include features.h so that we can include libc-internal.h directly and have it work

Mike Frysinger 18 yıl önce
ebeveyn
işleme
f8f1411ef0
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      include/libc-internal.h

+ 4 - 0
include/libc-internal.h

@@ -19,6 +19,8 @@
 #ifndef _LIBC_INTERNAL_H
 #ifndef _LIBC_INTERNAL_H
 #define _LIBC_INTERNAL_H 1
 #define _LIBC_INTERNAL_H 1
 
 
+#include <features.h>
+
 /* Some nice features only work properly with ELF */
 /* Some nice features only work properly with ELF */
 #if defined __HAVE_ELF__
 #if defined __HAVE_ELF__
 /* Define ALIASNAME as a weak alias for NAME. */
 /* Define ALIASNAME as a weak alias for NAME. */
@@ -94,6 +96,8 @@
 # define __cast__(_to)
 # define __cast__(_to)
 #endif
 #endif
 
 
+#define attribute_unused __attribute__ ((unused))
+
 /* Arrange to hide uClibc internals */
 /* Arrange to hide uClibc internals */
 #if __GNUC_PREREQ (3, 3)
 #if __GNUC_PREREQ (3, 3)
 # define attribute_hidden __attribute__ ((visibility ("hidden")))
 # define attribute_hidden __attribute__ ((visibility ("hidden")))