defs.h 853 B

12345678910111213141516171819202122232425262728293031323334
  1. /* $MirOS: contrib/hosted/fwcf/defs.h,v 1.7 2007/03/13 18:28:20 tg Exp $ */
  2. /*
  3. * This file is part of the FreeWRT project. FreeWRT is copyrighted
  4. * material, please see the LICENCE file in the top-level directory
  5. * or at http://www.freewrt.org/licence for details.
  6. */
  7. #ifndef DEFS_H
  8. #define DEFS_H
  9. #define DEF_FLASHBLOCK 65536 /* size of a flash block */
  10. #define DEF_FLASHPART 131072 /* size of the flash partition */
  11. #define FWCF_VER 0x01 /* major version of spec used */
  12. #ifndef __RCSID
  13. #define __RCSID(x) static const char __rcsid[] __attribute__((used)) = (x)
  14. #endif
  15. #ifndef BSD
  16. #define uint8_t u_int8_t
  17. #define uint16_t u_int16_t
  18. #define uint32_t u_int32_t
  19. #define uint64_t u_int64_t
  20. #endif
  21. #ifndef __dead
  22. #define __dead __attribute__((noreturn))
  23. #endif
  24. #include "replace.h" /* strlcpy/strlcat replacement for glibc */
  25. #endif