From a7f89980e5b3f4b9a74c70dbc5ffe8aabd28be28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 6 Jul 2014 18:04:32 +0200 Subject: Imported Upstream version 2.9.3 --- lib/lanplus/inc/inttypes-win.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 lib/lanplus/inc/inttypes-win.h (limited to 'lib/lanplus/inc/inttypes-win.h') diff --git a/lib/lanplus/inc/inttypes-win.h b/lib/lanplus/inc/inttypes-win.h new file mode 100644 index 0000000..a049a3c --- /dev/null +++ b/lib/lanplus/inc/inttypes-win.h @@ -0,0 +1,30 @@ +/* + * inttypes.h + * + */ +#ifdef WIN32 + +#ifndef INTTYPES_WIN +#define INTTYPES_WIN +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; +/* +#if __WORDSIZE == 64 +typedef unsigned long int uint64_t; +#else +typedef unsigned long long uint64_t; +#endif +*/ +typedef uint32_t socklen_t; + +#ifndef __attribute__ +#define __attribute__(Spec) /*empty*/ +#endif +#endif + +#else +/* Linux */ +#include +#endif +/* end of inttypes.h */ -- cgit v1.2.3