features.h 458 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef __FEATURES_H
  2. #define __FEATURES_H
  3. #ifdef __STDC__
  4. #define __P(x) x
  5. #define __const const
  6. /* Almost ansi */
  7. #if __STDC__ != 1
  8. #define const
  9. #define volatile
  10. #endif
  11. #else /* K&R */
  12. #define __P(x) ()
  13. #define __const
  14. #define const
  15. #define volatile
  16. #endif
  17. /* No C++ */
  18. #define __BEGIN_DECLS
  19. #define __END_DECLS
  20. /* GNUish things */
  21. #define __CONSTVALUE
  22. #define __CONSTVALUE2
  23. #define _POSIX_THREAD_SAFE_FUNCTIONS
  24. #include <sys/cdefs.h>
  25. #endif