From 6602eb3384c09902787ee0b047e609b1224f4e88 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 11 Nov 2015 15:51:12 +0100 Subject: [PATCH] Fix test for wxOSX in wxSTC code Use "#ifdef", not "#if", to check for __WXMAC__ to avoid warnings about using #if without argument under the other platforms. See #16243. --- src/stc/ScintillaWX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stc/ScintillaWX.cpp b/src/stc/ScintillaWX.cpp index 5186c608a4..d014546c76 100644 --- a/src/stc/ScintillaWX.cpp +++ b/src/stc/ScintillaWX.cpp @@ -287,7 +287,7 @@ void ScintillaWX::Initialise() { // "Cmd" key here, as elsewhere in wx API, while SCI_ALT is the "Option" // key (and "Ctrl" key, if we ever need it, should be represented by // SCI_META). -#if __WXMAC__ +#ifdef __WXMAC__ kmap.AssignCmdKey(SCK_LEFT, SCI_CTRL, SCI_VCHOME); kmap.AssignCmdKey(SCK_RIGHT, SCI_CTRL, SCI_LINEEND); kmap.AssignCmdKey(SCK_LEFT, SCI_ALT, SCI_WORDLEFT);