defs.h 543 B

123456789101112131415161718192021222324252627
  1. /* $Id$
  2. *
  3. * Copyright 2001-2003, Meiosys (www.meiosys.com). All rights reserved.
  4. *
  5. * See the COPYING file for the terms of usage and distribution.
  6. */
  7. #ifndef __sd_defs_h
  8. #define __sd_defs_h
  9. #ifdef __cplusplus
  10. # define __SD_BEGIN_DECLS extern "C" {
  11. # define __SD_END_DECLS }
  12. #else
  13. # define __SD_BEGIN_DECLS
  14. # define __SD_END_DECLS
  15. #endif
  16. /* GNU C attribute feature,
  17. * for the public API macro LOG4C_ATTRIBUTE is used instead */
  18. #ifdef __GNUC__
  19. #define SD_ATTRIBUTE(X) __attribute__(X)
  20. #else
  21. #define SD_ATTRIBUTE(X)
  22. #endif
  23. #endif