ac-stdint.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* Copyright (C) 2008 Free Software Foundation, Inc.
  2. Written by Adam Strzelecki <ono@java.pl>
  3. This program is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Lesser General Public License
  5. as published by the Free Software Foundation; either version 2.1,
  6. or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful, but
  8. WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public
  12. License along with this program; if not, write to the Free Software
  13. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  14. 02110-1301, USA. */
  15. #ifndef _AC_STDINT_H
  16. #define _AC_STDINT_H 1
  17. #ifndef _GENERATED_STDINT_H
  18. #define _GENERATED_STDINT_H
  19. #if defined(__GNUC__) && (__GNUC__ < 4)
  20. # define uint8_t unsigned char
  21. # define uint16_t unsigned short
  22. # define uint32_t unsigned int
  23. # define int8_t signed char
  24. # define int16_t signed short
  25. # define int32_t signed int
  26. # define gint16 int16_t
  27. #else
  28. # include <stdint.h>
  29. #endif
  30. /*
  31. #ifdef _WIN64
  32. typedef __int64 ssize_t;
  33. #else
  34. typedef _W64 int ssize_t;
  35. #endif
  36. */
  37. #endif
  38. #endif