1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00
LibrePilot/flight/Libraries/PyMite/platform/windows/stdint.h
2013-04-05 23:46:56 +03:00

26 lines
593 B
C

/*
* 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
#endif /* __stdint_h__ */