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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user