Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. /* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
  2. /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
  3. #undef __P
  4. #if defined(__STDC__) || defined(__cplusplus)
  5. #define __P(p) p
  6. #else
  7. #define __P(p)
  8. #endif
  9. #define _PTR            void *
  10. #define _AND            ,
  11. #define _NOARGS         void
  12. #define _CONST          const
  13. #define _VOLATILE       volatile
  14. #define _SIGNED         signed
  15. #define _DOTS           , ...
  16. #define _VOID void
  17. #define _EXFUN(name, proto)             name proto
  18. #define _DEFUN(name, arglist, args)     name(args)
  19. #define _DEFUN_VOID(name)               name(_NOARGS)
  20. #define _CAST_VOID (void)
  21. #ifndef _LONG_DOUBLE
  22. #define _LONG_DOUBLE long double
  23. #endif
  24. #ifndef _PARAMS
  25. #define _PARAMS(paramlist)              paramlist
  26. #endif
  27.  
  28. /* Support gcc's __attribute__ facility.  */
  29.  
  30. #define _ATTRIBUTE(attrs) __attribute__ ((attrs))
  31.  
  32. #if defined(__cplusplus)
  33. #define __BEGIN_DECLS   extern "C" {
  34. #define __END_DECLS     }
  35. #else
  36. #define __BEGIN_DECLS
  37. #define __END_DECLS
  38. #endif
  39.