msvcint.h 696 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef msvc_int_h
  2. #define msvc_int_h
  3. #ifdef _MSC_VER
  4. # define inline __inline
  5. # ifndef _MSC_STDINT_H_
  6. # if (_MSC_VER < 1300)
  7. typedef signed char int8_t;
  8. typedef signed short int16_t;
  9. typedef signed int int32_t;
  10. typedef unsigned char uint8_t;
  11. typedef unsigned short uint16_t;
  12. typedef unsigned int uint32_t;
  13. # else
  14. typedef signed __int8 int8_t;
  15. typedef signed __int16 int16_t;
  16. typedef signed __int32 int32_t;
  17. typedef unsigned __int8 uint8_t;
  18. typedef unsigned __int16 uint16_t;
  19. typedef unsigned __int32 uint32_t;
  20. # endif
  21. typedef signed __int64 int64_t;
  22. typedef unsigned __int64 uint64_t;
  23. # endif
  24. #else
  25. #include <stdint.h>
  26. #endif
  27. #endif