From 51bc8ede7f863d1c7ad2e9ba7f98e51bf86f8806 Mon Sep 17 00:00:00 2001 From: Kvaz1r Date: Sat, 7 Aug 2021 23:58:14 +0300 Subject: [PATCH] Fix Wexpansion-to-defined --- tests/controls/textctrltest.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/controls/textctrltest.cpp b/tests/controls/textctrltest.cpp index 57856491e4..7098df48f8 100644 --- a/tests/controls/textctrltest.cpp +++ b/tests/controls/textctrltest.cpp @@ -38,7 +38,11 @@ static const int TEXT_HEIGHT = 200; -#define wxHAS_2CHAR_NEWLINES defined(__WXMSW__) && !defined(__WXUNIVERSAL__) +#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__) +#define wxHAS_2CHAR_NEWLINES 1 +#else +#define wxHAS_2CHAR_NEWLINES 0 +#endif // ---------------------------------------------------------------------------- // test class