stdint.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Copyright (c) 2008 Travis Geiselbrecht
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining
  5. * a copy of this software and associated documentation files
  6. * (the "Software"), to deal in the Software without restriction,
  7. * including without limitation the rights to use, copy, modify, merge,
  8. * publish, distribute, sublicense, and/or sell copies of the Software,
  9. * and to permit persons to whom the Software is furnished to do so,
  10. * subject to the following conditions:
  11. *
  12. * The above copyright notice and this permission notice shall be
  13. * included in all copies or substantial portions of the Software.
  14. *
  15. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  16. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  17. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  18. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  19. * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  20. * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  21. * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  22. */
  23. #ifndef __STDINT_H
  24. #define __STDINT_H
  25. typedef unsigned char uint8_t;
  26. typedef unsigned short uint16_t;
  27. typedef unsigned int uint32_t;
  28. typedef unsigned long long uint64_t;
  29. typedef signed char int8_t;
  30. typedef short int16_t;
  31. typedef int int32_t;
  32. typedef long long int64_t;
  33. typedef int8_t int_least8_t;
  34. typedef int16_t int_least16_t;
  35. typedef int32_t int_least32_t;
  36. typedef int64_t int_least64_t;
  37. typedef uint8_t uint_least8_t;
  38. typedef uint16_t uint_least16_t;
  39. typedef uint32_t uint_least32_t;
  40. typedef uint64_t uint_least64_t;
  41. typedef int8_t int_fast8_t;
  42. typedef int16_t int_fast16_t;
  43. typedef int32_t int_fast32_t;
  44. typedef int64_t int_fast64_t;
  45. typedef uint8_t uint_fast8_t;
  46. typedef uint16_t uint_fast16_t;
  47. typedef uint32_t uint_fast32_t;
  48. typedef uint64_t uint_fast64_t;
  49. typedef long intptr_t;
  50. typedef unsigned long uintptr_t;
  51. typedef long long intmax_t;
  52. typedef unsigned long long uintmax_t;
  53. #endif