Build fixes for various wxUSE_* macros ==0

This commit is contained in:
Paul Cornett 2019-10-12 09:22:02 -07:00
parent 0cced058d8
commit 127ec4dd7f
2 changed files with 6 additions and 1 deletions

View File

@ -422,7 +422,11 @@ bool wxTopLevelWindowBase::Layout()
// if we're using sizers or constraints - do use them
if ( GetSizer() || GetConstraints() )
if ( GetSizer()
#if wxUSE_CONSTRAINTS
|| GetConstraints()
#endif
)
{
return wxNonOwnedWindow::Layout();
}

View File

@ -86,6 +86,7 @@
#include <errno.h>
#if wxUSE_GUI
#include "wx/filename.h"
#include "wx/filesys.h"
#include "wx/notebook.h"
#include "wx/statusbr.h"