From c89fa4d230dbdf2d3f12301a916a7b2373d2de14 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 3 Jan 2010 16:19:01 +0000 Subject: added Visual Studio Project not working yet .. :( --- src/datatypes.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/datatypes.h') 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 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_; -- cgit v1.2.3