Compilation fixes for WXWIN_COMPATIBILITY_2_4.

Don't include wx/wx.h, use the much smaller set of
required headers instead.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-09-13 16:11:09 +00:00
parent a7b1654d9d
commit ea172e69cf
11 changed files with 48 additions and 12 deletions

View File

@@ -10,7 +10,6 @@
/////////////////////////////////////////////////////////////////////////////
#include <stdio.h>
#include "wx/wx.h"
#include "wx/utils.h"
#include "wx/list.h"
#include "wx/hash.h"
@@ -511,9 +510,9 @@ class CustomMacro: public wxObject
inline CustomMacro(char *name, int args, char *body)
{
noArgs = args;
macroName = copystring(name);
macroName = strcpy(new char[strlen(name) + 1], name);
if (body)
macroBody = copystring(body);
macroBody = strcpy(new char[strlen(body) + 1], body);
else
macroBody = NULL;
}