Browse Source

whoops, windows-specific function

David Rose 14 years ago
parent
commit
d297a816af
1 changed files with 2 additions and 0 deletions
  1. 2 0
      direct/src/plugin/wstring_encode.cxx

+ 2 - 0
direct/src/plugin/wstring_encode.cxx

@@ -71,6 +71,7 @@ string_to_wstring(wstring &result, const string &source) {
 }
 #endif  // _WIN32
 
+#ifdef _WIN32
 ////////////////////////////////////////////////////////////////////
 //     Function: wstring ostream operator
 //  Description: Converts the wstring to utf-8 for output.
@@ -83,3 +84,4 @@ operator << (ostream &out, const wstring &str) {
   }
   return out;
 }
+#endif  // _WIN32