00001 /* 00002 * Small stdint.h replacement to be used with the MS Visual C++ environment 00003 */ 00004 00005 #ifndef __stdint_h__ 00006 #define __stdint_h__ 00007 00008 #if defined(_MSC_VER) 00009 // Visual Studio does not include stdint.h, so we do it inline here 00010 typedef char int8_t; 00011 typedef short int16_t; 00012 typedef int int32_t; 00013 typedef unsigned char uint8_t; 00014 typedef unsigned short uint16_t; 00015 typedef unsigned int uint32_t; 00016 00017 // change the default VS _DEBUG into PyMite __DEBUG__ 00018 #if defined(_DEBUG) 00019 #define __DEBUG__ 1 00020 #endif 00021 #else 00022 //#include <stdint.h> 00023 #endif 00024 00025 00026 #endif /* __stdint_h__ */