From 141c3cadbfbccb9b216e705f65696ff231f51cdd Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 10 Nov 2004 21:52:30 +0000 Subject: [PATCH] Set the pos_type and size_type explictly to 8 byte types. --- include/osgDB/Archive | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/include/osgDB/Archive b/include/osgDB/Archive index cff8c69d6..9e5adeb7b 100644 --- a/include/osgDB/Archive +++ b/include/osgDB/Archive @@ -80,10 +80,15 @@ class OSGDB_EXPORT Archive : public ReaderWriter protected: - + + #if defined(_MSC_VER) + typedef __int64 pos_type; + typedef __int64 size_type; + #else + typedef unsigned long long pos_type; + typedef unsigned long long size_type; + #endif - typedef std::istream::pos_type pos_type; - typedef std::istream::off_type size_type; typedef std::pair PositionSizePair; typedef std::map FileNamePositionMap;