Where possible moved redundent C header includes from headers to source files

This commit is contained in:
Robert Osfield
2008-12-12 18:47:30 +00:00
parent 97cd954c01
commit 315aeeb557
49 changed files with 69299 additions and 30082 deletions

View File

@@ -14,6 +14,8 @@
#include <osgDB/ConvertUTF>
#include <osg/Notify>
#include <string.h>
#if defined(WIN32) && !defined(__CYGWIN__)
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@@ -22,6 +24,12 @@
namespace osgDB
{
std::string convertUTF16toUTF8(const std::wstring& s){return convertUTF16toUTF8(s.c_str(), s.length());}
std::string convertUTF16toUTF8(const wchar_t* s){return convertUTF16toUTF8(s, wcslen(s));}
std::wstring convertUTF8toUTF16(const std::string& s){return convertUTF8toUTF16(s.c_str(), s.length());}
std::wstring convertUTF8toUTF16(const char* s){return convertUTF8toUTF16(s, strlen(s));}
std::string convertUTF16toUTF8(const wchar_t* source, unsigned sourceLength)
{
#if defined(WIN32) && !defined(__CYGWIN__)