2013-04-05 22:46:56 +02:00
|
|
|
/*
|
|
|
|
* Small stdint.h replacement to be used with the MS Visual C++ environment
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __stdint_h__
|
|
|
|
#define __stdint_h__
|
|
|
|
|
|
|
|
#if defined(_MSC_VER)
|
|
|
|
// Visual Studio does not include stdint.h, so we do it inline here
|
|
|
|
typedef char int8_t;
|
|
|
|
typedef short int16_t;
|
|
|
|
typedef int int32_t;
|
|
|
|
typedef unsigned char uint8_t;
|
|
|
|
typedef unsigned short uint16_t;
|
|
|
|
typedef unsigned int uint32_t;
|
|
|
|
|
|
|
|
// change the default VS _DEBUG into PyMite __DEBUG__
|
|
|
|
#if defined(_DEBUG)
|
|
|
|
#define __DEBUG__ 1
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
//#include <stdint.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2011-01-09 23:36:15 +01:00
|
|
|
#endif /* __stdint_h__ */
|