cdefs.h 539 B

123456789101112131415161718192021222324252627
  1. #warning usage of non-standard #include <sys/cdefs.h> is deprecated
  2. #undef __P
  3. #undef __PMT
  4. #define __P(args) args
  5. #define __PMT(args) args
  6. #define __CONCAT(x,y) x ## y
  7. #define __STRING(x) #x
  8. #ifdef __cplusplus
  9. # define __BEGIN_DECLS extern "C" {
  10. # define __END_DECLS }
  11. #else
  12. # define __BEGIN_DECLS
  13. # define __END_DECLS
  14. #endif
  15. #if defined(__GNUC__) && !defined(__cplusplus)
  16. # define __THROW __attribute__ ((__nothrow__))
  17. # define __NTH(fct) __attribute__ ((__nothrow__)) fct
  18. #else
  19. # define __THROW
  20. # define __NTH(fct) fct
  21. #endif