Fix compatibility with wxWidgets 3.0.x
Fixes #8533 https://gitlab.com/kicad/code/kicad/issues/8533
This commit is contained in:
parent
eeb405c196
commit
b6de4da686
|
@ -29,9 +29,14 @@
|
||||||
#include <math/util.h>
|
#include <math/util.h>
|
||||||
#include <wx/log.h>
|
#include <wx/log.h>
|
||||||
|
|
||||||
|
// Fix compatibility with wxWidgets version < 3.1.4
|
||||||
|
#ifndef wxASCII_STR
|
||||||
|
#define wxASCII_STR(s) wxString::FromAscii(s)
|
||||||
|
#endif
|
||||||
|
|
||||||
void kimathLogDebug( const char* aFormatString, ... )
|
void kimathLogDebug( const char* aFormatString, ... )
|
||||||
{
|
{
|
||||||
if( wxLog::IsLevelEnabled( wxLOG_Debug, wxASCII_STR( wxLOG_COMPONENT ) ) )
|
if( wxLog::IsLevelEnabled( wxLOG_Debug, wxString::FromAscii( wxLOG_COMPONENT ) ) )
|
||||||
{
|
{
|
||||||
va_list argList;
|
va_list argList;
|
||||||
va_start( argList, aFormatString );
|
va_start( argList, aFormatString );
|
||||||
|
|
Loading…
Reference in New Issue