features.h 922 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. /* __restrict is known in EGCS 1.2 and above. */
  9. #if !defined __GNUC__ || __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 92)
  10. # define __restrict /* Ignore */
  11. #endif
  12. #ifdef __STDC__
  13. #define __P(x) x
  14. #define __const const
  15. /* Almost ansi */
  16. #if __STDC__ != 1
  17. #define const
  18. #define volatile
  19. #endif
  20. #else /* K&R */
  21. #define __P(x) ()
  22. #define __const
  23. #define const
  24. #define volatile
  25. #endif
  26. /* No C++ */
  27. #define __BEGIN_DECLS
  28. #define __END_DECLS
  29. /* GNUish things */
  30. #define __CONSTVALUE
  31. #define __CONSTVALUE2
  32. #define __USE_BSD
  33. #define __USE_MISC
  34. #define __USE_POSIX
  35. #define __USE_POSIX2
  36. #define _POSIX_THREAD_SAFE_FUNCTIONS
  37. #include <sys/cdefs.h>
  38. #endif