sysdep.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Random host-dependent support code.
  2. Copyright 1995, 1997, 2000 Free Software Foundation, Inc.
  3. Written by Ken Raeburn.
  4. Copyright 2007 Kevin Kofler
  5. This file is part of libopcodes, the opcodes library.
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  17. MA 02110-1301, USA. */
  18. #include <stddef.h>
  19. #include <stdlib.h>
  20. #include <string.h>
  21. #define PTR void *
  22. #ifdef __GNUC__
  23. #define ATTRIBUTE_FPTR_PRINTF_2 __attribute__((__format__(__printf__,2,3)))
  24. #define ATTRIBUTE_UNUSED __attribute__((__unused__))
  25. #else
  26. #define ATTRIBUTE_FPTR_PRINTF_2 /**/
  27. #define ATTRIBUTE_UNUSED /**/
  28. #endif
  29. extern void *xmalloc(size_t);
  30. extern void *xcalloc(size_t, size_t);
  31. #define ARCH_m68k