00001
00002
00003
00004
00005
00006
00007
00008 #ifndef __PLATFORM_UTILS_H__
00009 #define __PLATFORM_UTILS_H__
00010
00011 #if defined(__WIN32__) || defined(_WIN32)
00012 # if defined(OSM_NONCLIENT_BUILD)
00013 # define _OSMExport __declspec( dllexport )
00014 # else
00015 # define _OSMExport __declspec( dllimport )
00016 # endif
00017 #elif defined(__APPLE__)
00018 # define _OSMExport __attribute__((visibility("default")))
00019 #else
00020 # define _OSMExport
00021 #endif
00022
00023 namespace Awesomium {
00024 _OSMExport const std::wstring& convertAsciiStringToWide(const std::string& asciiString);
00025
00026 _OSMExport const std::string& convertWideStringToAscii(const std::wstring& wideString);
00027
00028 _OSMExport const std::wstring& getCurrentWorkingDirectory();
00029 };
00030
00031 namespace Impl {
00032 void initCommandLine();
00033 void initWebCorePlatform();
00034 }
00035
00036 #endif