Fix for OpenBSD/FreeBSD.

This commit is contained in:
lotodore
2008-06-02 11:45:09 +00:00
parent d59860b69d
commit e0202f6462
+2 -2
View File
@@ -37,7 +37,7 @@ ConvHelper::NativeToUtf8(const std::string &inStr)
{
string retStr(inStr);
size_t insize = inStr.length();
#ifdef __APPLE__
#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__)
const char *inbuf = inStr.data();
#else
char *inbuf = const_cast<char *>(inStr.data());
@@ -72,7 +72,7 @@ ConvHelper::Utf8ToNative(const std::string &inStr)
{
string retStr(inStr);
size_t insize = inStr.length();
#ifdef __APPLE__
#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__)
const char *inbuf = inStr.data();
#else
char *inbuf = const_cast<char *>(inStr.data());