diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-06 18:04:32 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-06 18:04:32 +0200 |
commit | a7f89980e5b3f4b9a74c70dbc5ffe8aabd28be28 (patch) | |
tree | 41c4deec1fdfbafd7821b4ca7a9772ac0abd92f5 /lib/lanplus/inc/inttypes-win.h |
Imported Upstream version 2.9.3upstream/2.9.3
Diffstat (limited to 'lib/lanplus/inc/inttypes-win.h')
-rw-r--r-- | lib/lanplus/inc/inttypes-win.h | 30 |
1 files changed, 30 insertions, 0 deletions
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 <inttypes.h> +#endif +/* end of inttypes.h */ |