From f5b5202296665db19d6249b2d007f3412a2bbfaf Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 2 Mar 2016 09:18:26 +0000 Subject: [PATCH] From Joe Thompson, "OpenSceneGraph cannot be built with Visual Studio 2008. The file osg-OpenSceneGraph-3.4.0\include\osg\Types typedefs int8_t, int16_t, int32_t and int64_t These are typedefed as signed __intX in several other places. With VS2008, this causes an error "int8_t redifined, different basic types" Explicitly declaring them signed fixes the error." --- include/osg/Types | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/osg/Types b/include/osg/Types index 8c749e705..568561e20 100644 --- a/include/osg/Types +++ b/include/osg/Types @@ -15,13 +15,13 @@ #define __OSG_TYPES #if defined(_MSC_VER) && _MSC_VER < 1600 -typedef __int8 int8_t; -typedef unsigned __int8 uint8_t; -typedef __int16 int16_t; +typedef signed __int8 int8_t; +typedef unsigned __int8 uint8_t; +typedef signed __int16 int16_t; typedef unsigned __int16 uint16_t; -typedef __int32 int32_t; +typedef signed __int32 int32_t; typedef unsigned __int32 uint32_t; -typedef __int64 int64_t; +typedef signed __int64 int64_t; typedef unsigned __int64 uint64_t; #else #include