+#else
+// GNU libc 2.2 only has for wxSnprintf for Unicode called swprintf
+// so we imitate wxSprintf using it.
+int WXDLLEXPORT wxSprintf(wxChar *buf,
+ const wxChar *format,
+ ...) ATTRIBUTE_PRINTF_2
+{
+ va_list argptr;
+ va_start(argptr, format);
+
+ int iLen = swprintf(buf, 10000, format, argptr);
+
+ va_end(argptr);
+
+ return iLen;
+}
+#endif