]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/ustring.cpp
Revised #ifndef WX_PRECOMP headers, added missing #include wx/wxcrtvararg.h
[wxWidgets.git] / src / common / ustring.cpp
index cb7eb084c437b4a3ed3a618704f7e547eacfbaed..c0cae8f58de797fd7940d544fe787b0b69d529a2 100644 (file)
     #pragma hdrstop
 #endif
 
+#include "wx/ustring.h"
+
 #ifndef WX_PRECOMP
-    #include "wx/strconv.h"  // wxConvLibc
+    #include "wx/crt.h"
     #include "wx/log.h"
 #endif
 
-#include "wx/ustring.h"
-#include "wx/unichar.h"
-#include "wx/string.h"
-
-
 wxUString &wxUString::assignFromAscii( const char *str )
 {
    size_type len = wxStrlen( str );
@@ -545,4 +542,16 @@ wxU16CharBuffer wxUString::utf16_str() const
     
     return result;    
 }
-    
+
+
+#if SIZEOF_WCHAR_T != 2
+template<>
+wxCharTypeBuffer<wxChar16>::Data
+wxCharTypeBuffer<wxChar16>::NullData(NULL);
+#endif
+
+#if SIZEOF_WCHAR_T != 4
+template<>
+wxCharTypeBuffer<wxChar32>::Data
+wxCharTypeBuffer<wxChar32>::NullData(NULL);
+#endif