summaryrefslogtreecommitdiff
path: root/lib/lanplus/inc/inttypes-win.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lanplus/inc/inttypes-win.h')
-rw-r--r--lib/lanplus/inc/inttypes-win.h30
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 */