From Mathias Froehlich, build fixes

This commit is contained in:
Robert Osfield 2011-01-24 21:12:25 +00:00
parent 442caf6961
commit abea92ee91
5 changed files with 9 additions and 6 deletions

View File

@ -19,6 +19,7 @@
#include <osg/buffered_value>
#include <osg/FrameStamp>
#include <iosfwd>
#include <list>
#include <map>

View File

@ -228,9 +228,7 @@ public:
if (_pagedLODs.erase(clod) > 0)
leftToRemove--;
}
childrenRemoved.insert(childrenRemoved.end(),
expiredChildren.begin(),
expiredChildren.end());
std::copy(expiredChildren.begin(), expiredChildren.end(), std::back_inserter(childrenRemoved));
}
// advance the iterator to the next element

View File

@ -1,6 +1,7 @@
#ifndef OSGDB_ASCIISTREAMOPERATOR
#define OSGDB_ASCIISTREAMOPERATOR
#include <ostream>
#include <osgDB/StreamOperator>
class AsciiOutputIterator : public osgDB::OutputIterator
@ -69,7 +70,7 @@ public:
virtual void writeGLenum( const osgDB::ObjectGLenum& value )
{
GLenum e = value.get();
GLenum e = value.get();
const std::string& enumString = osgDB::Registry::instance()->getObjectWrapperManager()->getString("GL", e);
indentIfRequired(); *_out << enumString << ' ';
}
@ -104,7 +105,7 @@ public:
wrappedStr += ch;
}
wrappedStr.insert( 0, 1, '\"' );
wrappedStr.insert( std::string::size_type(0), 1, '\"' );
wrappedStr += '\"';
indentIfRequired();

View File

@ -161,7 +161,7 @@ public:
else if ( ch=='\\' ) realStr += '\\';
realStr += ch;
}
realStr.insert( 0, 1, '\"' );
realStr.insert( std::string::size_type(0), 1, '\"' );
realStr += '\"';
addToCurrentNode( realStr );
}

View File

@ -213,6 +213,9 @@ ELSE()
SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:${CMAKE_OSX_SYSROOT}/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib")
ENDIF()
ELSE(APPLE)
SET(LIB_EXTRA_LIBS ${X11_X11_LIB} ${LIB_EXTRA_LIBS})
ENDIF(APPLE)
ENDIF()
ENDIF()