diff options
Diffstat (limited to 'src/datatypes.h')
-rw-r--r-- | src/datatypes.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/datatypes.h b/src/datatypes.h index 051d62e..e9ee657 100644 --- a/src/datatypes.h +++ b/src/datatypes.h @@ -32,6 +32,7 @@ #ifndef ANYLIKE_datatypes_h_INCLUDED #define ANYLIKE_datatypes_h_INCLUDED +#ifndef _MSC_VER #include <stdint.h> typedef uint8_t u_int8_t; @@ -42,6 +43,16 @@ typedef uint64_t u_int64_t; /* typedef int16_t int16_t; */ /* typedef int32_t int32_t; */ /* typedef int64_t int64_t; */ +#else
+typedef signed __int8 int8_t;
+typedef unsigned __int8 u_int8_t;
+typedef signed __int16 int16_t;
+typedef unsigned __int16 u_int16_t;
+typedef signed __int32 int32_t;
+typedef unsigned __int32 u_int32_t;
+typedef signed __int64 int64_t;
+typedef unsigned __int64 u_int64_t; +#endif struct buffer_struct { u_int32_t length_; |