HI FlySky,

Copy and paste submissions aren't useful to me as they are very error
prone, full files in future please.

Rather than attempt to apply your suggested changes I've looked at how
stdint.h is handled elsewhere in the OSG code base and have created an
include/osg/Types header that centeralises the way that the stdint.h is
included or the fallback for VS is provided.  I have checked this fix into
svn/trunk.

Robert.


On 8 July 2014 03:37, FlySky <[email protected]> wrote:

>
> Hi Robert,
>
>     osgviewer.cpp(3.3.2) compile error with vs2003-vs2008 :
>    .\osgviewer.cpp(41) : fatal error C1083: Cannot open include file:
> 'stdint.h': No such file or directory
>
>    Visual Studio 2003 - 2008 (Visual C++ 7.1 - 9) don't claim to be C99
> compatible.
>
>    code:
>    #include <stdint.h>
>
>    Just define them.
>
>    #ifdef _MSC_VER
>    typedef __int32 int32_t;
>    typedef unsigned __int32 uint32_t;
>    typedef __int64 int64_t;
>    typedef unsigned __int64 uint64_t;
>    #else
>    #include <stdint.h>
>    #endif
>
> cheers,
>
> FlySky
>
>
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to