ChipMaster's trial hacks on C++CMS starting with v1.2.1. Not sure I'll follow on with the v2 since it looks to be breaking and mostly frivolous.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

50 lines
1.0 KiB

  1. //
  2. // Copyright (C) 2009-2012 Artyom Beilis (Tonkikh)
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See
  5. // accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. //
  8. #ifndef BOOSTER_CSTDINT_H
  9. #define BOOSTER_CSTDINT_H
  10. #include <booster/build_config.h>
  11. #if defined(BOOSTER_HAVE_STDINT_H) || defined(BOOSTER_HAVE_INTTYPES_H)
  12. # if defined BOOSTER_HAVE_STDINT_H
  13. # include <stdint.h>
  14. # elif defined BOOSTER_HAVE_INTTYPES_H
  15. # include <inttypes.h>
  16. # endif
  17. namespace booster {
  18. using ::int8_t;
  19. using ::uint8_t;
  20. using ::uint16_t;
  21. using ::int16_t;
  22. using ::uint32_t;
  23. using ::int32_t;
  24. using ::uint64_t;
  25. using ::int64_t;
  26. }
  27. #else
  28. namespace booster {
  29. //
  30. // Generally only for broken MSVC
  31. // And guess
  32. typedef unsigned char uint8_t;
  33. typedef signed char int8_t;
  34. typedef unsigned short uint16_t;
  35. typedef short int16_t;
  36. typedef unsigned int uint32_t;
  37. typedef int int32_t;
  38. typedef unsigned long long uint64_t;
  39. typedef long long int64_t;
  40. }
  41. #endif
  42. #endif // BOOSTER_CSTDINT_H