From 127ec4dd7faf5c2e8e949071e86c99291913cf0e Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sat, 12 Oct 2019 09:22:02 -0700 Subject: [PATCH] Build fixes for various wxUSE_* macros ==0 --- src/common/toplvcmn.cpp | 6 +++++- src/common/utilscmn.cpp | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/common/toplvcmn.cpp b/src/common/toplvcmn.cpp index 0dc35173d1..50a654c4f8 100644 --- a/src/common/toplvcmn.cpp +++ b/src/common/toplvcmn.cpp @@ -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(); } diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index 25b00db24c..a3acd27b51 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -86,6 +86,7 @@ #include #if wxUSE_GUI + #include "wx/filename.h" #include "wx/filesys.h" #include "wx/notebook.h" #include "wx/statusbr.h"