X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/31be35cda26f033fe62db673a8a973f0b15c9de7..7e16b8e6b3c3aab2c91d9b54c8953201e111be50:/include/stdint.h diff --git a/include/stdint.h b/include/stdint.h new file mode 100644 index 0000000..dbe4222 --- /dev/null +++ b/include/stdint.h @@ -0,0 +1,27 @@ +#ifndef _STDINT_H +#define _STDINT_H + +#ifndef __i386__ +# ifndef __x86_64__ +# error this stdint.h expects either __i386__ or __x86_64__ to be defined +# endif +#endif + +typedef signed char int8_t; +typedef unsigned char uint8_t; + +typedef signed short int16_t; +typedef unsigned short uint16_t; + +typedef signed int int32_t; +typedef unsigned int uint32_t; + +#ifdef __x86_64__ +typedef signed long int64_t; +typedef unsigned long uint64_t; +#else +typedef signed long long int64_t; +typedef unsigned long long uint64_t; +#endif + +#endif