dbhelpers.h 642 B

123456789101112131415161718192021
  1. #ifndef DROPBEAR_DBHELPERS_H_
  2. #define DROPBEAR_DBHELPERS_H_
  3. /* This header defines some things that are also used by libtomcrypt/math.
  4. We avoid including normal include.h since that can result in conflicting
  5. definitinos - only include config.h */
  6. #include "config.h"
  7. #ifdef __GNUC__
  8. #define ATTRIB_PRINTF(fmt,args) __attribute__((format(printf, fmt, args)))
  9. #define ATTRIB_NORETURN __attribute__((noreturn))
  10. #define ATTRIB_SENTINEL __attribute__((sentinel))
  11. #else
  12. #define ATTRIB_PRINTF(fmt,args)
  13. #define ATTRIB_NORETURN
  14. #define ATTRIB_SENTINEL
  15. #endif
  16. void m_burn(void* data, unsigned int len);
  17. #endif /* DROPBEAR_DBHELPERS_H_ */