Patch for OpenBSD.

This commit is contained in:
lotodore
2008-08-03 09:37:46 +00:00
parent f9fad36693
commit 48c63a35df
+2 -2
View File
@@ -37,7 +37,7 @@ ConvHelper::NativeToUtf8(const std::string &inStr)
{
string retStr(inStr);
size_t insize = inStr.length();
#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__)
#if defined(__APPLE__) || 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();
#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__)
#if defined(__APPLE__) || defined(__FreeBSD__)
const char *inbuf = inStr.data();
#else
char *inbuf = const_cast<char *>(inStr.data());