X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/c43bc43891ee5fad288ca72f101878bd84164845..81148fa15713ee68be49610206526d0725a5868f:/include/raw/stdint.h diff --git a/include/raw/stdint.h b/include/raw/stdint.h new file mode 100644 index 0000000..dbe4222 --- /dev/null +++ b/include/raw/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