#if wxUSE_IOSTREAMH
#include <iostream.h>
+#include <fstream.h>
#else
#include <iostream>
+#include <fstream>
+# ifdef _MSC_VER
+ using namespace std;
+# endif
#endif
-#include <fstream.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
return tmpOut;
}
+wxString wxStripMenuCodes(const wxString& str)
+{
+ char *buf = new char[str.Length() + 1];
+ wxStripMenuCodes((char*) (const char*) str, buf);
+ wxString str1(buf);
+ delete[] buf;
+ return str1;
+}
/*
* Window search functions
wxDebugStreamBuf::wxDebugStreamBuf(void)
{
- if (allocate()) setp(base(),ebuf());
+ // <iostream> usage doesn't need this, and i have no idea how to simulate it.
+#if wxUSE_IOSTREAMH
+ if (allocate())
+ setp(base(),ebuf());
+#endif
}
int wxDebugStreamBuf::overflow(int WXUNUSED(i))