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:
@@ -21,7 +21,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/wx.h"
|
||||
#include "wx/log.h"
|
||||
#endif
|
||||
|
||||
#include "wx/hash.h"
|
||||
@@ -42,6 +42,16 @@ using namespace std;
|
||||
#include <ctype.h>
|
||||
#include "tex2any.h"
|
||||
|
||||
#if !WXWIN_COMPATIBILITY_2_4
|
||||
static inline wxChar* copystring(const wxChar* s)
|
||||
{ return wxStrcpy(new wxChar[wxStrlen(s) + 1], s); }
|
||||
static inline void StringToInt (const wxChar *s, int *number)
|
||||
{
|
||||
if (s && *s && number)
|
||||
*number = (int) wxStrtol (s, (wxChar **) NULL, 10);
|
||||
}
|
||||
#endif
|
||||
|
||||
wxHashTable TexReferences(wxKEY_STRING);
|
||||
wxList BibList(wxKEY_STRING);
|
||||
wxStringList CitationList;
|
||||
|
Reference in New Issue
Block a user