stddef.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*-------------------------------------------------------------------------
  2. stddef.h - ANSI functions forward declarations
  3. Copyright (C) 2004, Maarten Brock <sourceforge.brock AT dse.nl>
  4. Ported to PIC16 port by Raphael Neider <rneider AT web.de> (2005)
  5. This library is free software; you can redistribute it and/or modify it
  6. under the terms of the GNU General Public License as published by the
  7. Free Software Foundation; either version 2, or (at your option) any
  8. later version.
  9. This library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this library; see the file COPYING. If not, write to the
  15. Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
  16. MA 02110-1301, USA.
  17. As a special exception, if you link this library with other files,
  18. some of which are compiled with SDCC, to produce an executable,
  19. this library does not by itself cause the resulting executable to
  20. be covered by the GNU General Public License. This exception does
  21. not however invalidate any other reasons why the executable file
  22. might be covered by the GNU General Public License.
  23. -------------------------------------------------------------------------*/
  24. #ifndef __PIC16_STDDEF_H
  25. #define __PIC16_STDDEF_H 1
  26. #ifndef NULL
  27. #define NULL (void *)0
  28. #endif
  29. #ifndef _SIZE_T_DEFINED
  30. #define _SIZE_T_DEFINED
  31. typedef unsigned int size_t;
  32. #endif
  33. #define offsetof(s, m) __builtin_offsetof (s, m)
  34. #endif /* __PIC16_STDDEF_H */