// Boost substitute. For full boost library see http://boost.org #ifndef BOOST_CSTDINT_HPP #define BOOST_CSTDINT_HPP #if BLARGG_USE_NAMESPACE #include #else #include #endif BLARGG_BEGIN_NAMESPACE( boost ) #if UCHAR_MAX != 0xFF || SCHAR_MAX != 0x7F # error "No suitable 8-bit type available" #endif typedef unsigned char uint8_t; typedef signed char int8_t; #if USHRT_MAX != 0xFFFF # error "No suitable 16-bit type available" #endif typedef short int16_t; typedef unsigned short uint16_t; #if ULONG_MAX == 0xFFFFFFFF typedef long int32_t; typedef unsigned long uint32_t; #elif UINT_MAX == 0xFFFFFFFF typedef int int32_t; typedef unsigned int uint32_t; #else # error "No suitable 32-bit type available" #endif BLARGG_END_NAMESPACE #endif