_stdint.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*
  2. * Copyright (c) 2004, 2005 by
  3. * Ralf Corsepius, Ulm/Germany. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and distribute this software
  6. * is freely granted, provided that this notice is preserved.
  7. */
  8. #ifndef _SYS__STDINT_H
  9. #define _SYS__STDINT_H
  10. #include <machine/_default_types.h>
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #ifdef ___int8_t_defined
  15. #ifndef _INT8_T_DECLARED
  16. typedef __int8_t int8_t ;
  17. #define _INT8_T_DECLARED
  18. #endif
  19. #ifndef _UINT8_T_DECLARED
  20. typedef __uint8_t uint8_t ;
  21. #define _UINT8_T_DECLARED
  22. #endif
  23. #define __int8_t_defined 1
  24. #endif /* ___int8_t_defined */
  25. #ifdef ___int16_t_defined
  26. #ifndef _INT16_T_DECLARED
  27. typedef __int16_t int16_t ;
  28. #define _INT16_T_DECLARED
  29. #endif
  30. #ifndef _UINT16_T_DECLARED
  31. typedef __uint16_t uint16_t ;
  32. #define _UINT16_T_DECLARED
  33. #endif
  34. #define __int16_t_defined 1
  35. #endif /* ___int16_t_defined */
  36. #ifdef ___int32_t_defined
  37. #ifndef _INT32_T_DECLARED
  38. typedef __int32_t int32_t ;
  39. #define _INT32_T_DECLARED
  40. #endif
  41. #ifndef _UINT32_T_DECLARED
  42. typedef __uint32_t uint32_t ;
  43. #define _UINT32_T_DECLARED
  44. #endif
  45. #define __int32_t_defined 1
  46. #endif /* ___int32_t_defined */
  47. #ifdef ___int64_t_defined
  48. #ifndef _INT64_T_DECLARED
  49. typedef __int64_t int64_t ;
  50. #define _INT64_T_DECLARED
  51. #endif
  52. #ifndef _UINT64_T_DECLARED
  53. typedef __uint64_t uint64_t ;
  54. #define _UINT64_T_DECLARED
  55. #endif
  56. #define __int64_t_defined 1
  57. #endif /* ___int64_t_defined */
  58. #ifndef _INTMAX_T_DECLARED
  59. typedef __intmax_t intmax_t;
  60. #define _INTMAX_T_DECLARED
  61. #endif
  62. #ifndef _UINTMAX_T_DECLARED
  63. typedef __uintmax_t uintmax_t;
  64. #define _UINTMAX_T_DECLARED
  65. #endif
  66. #ifndef _INTPTR_T_DECLARED
  67. typedef __intptr_t intptr_t;
  68. #define _INTPTR_T_DECLARED
  69. #endif
  70. #ifndef _UINTPTR_T_DECLARED
  71. typedef __uintptr_t uintptr_t;
  72. #define _UINTPTR_T_DECLARED
  73. #endif
  74. #ifdef __cplusplus
  75. }
  76. #endif
  77. #endif /* _SYS__STDINT_H */