features.h 748 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef __FEATURES_H
  2. #define __FEATURES_H
  3. /* Major and minor version number of the uCLibc library package. Use
  4. these macros to test for features in specific releases. */
  5. #define __UCLIBC__ 0
  6. #define __UCLIBC_MAJOR__ 9
  7. #define __UCLIBC_MINOR__ 1
  8. #ifdef __STDC__
  9. #define __P(x) x
  10. #define __const const
  11. /* Almost ansi */
  12. #if __STDC__ != 1
  13. #define const
  14. #define volatile
  15. #endif
  16. #else /* K&R */
  17. #define __P(x) ()
  18. #define __const
  19. #define const
  20. #define volatile
  21. #endif
  22. /* No C++ */
  23. #define __BEGIN_DECLS
  24. #define __END_DECLS
  25. /* GNUish things */
  26. #define __CONSTVALUE
  27. #define __CONSTVALUE2
  28. #define __USE_BSD
  29. #define __USE_MISC
  30. #define __USE_POSIX
  31. #define __USE_POSIX2
  32. #define _POSIX_THREAD_SAFE_FUNCTIONS
  33. #include <sys/cdefs.h>
  34. #endif