summaryrefslogtreecommitdiff
path: root/src/guiChatConsole.cpp
diff options
context:
space:
mode:
authorRogier-5 <Rogier-5@users.noreply.github.com>2016-07-04 21:00:57 +0200
committerest31 <est31@users.noreply.github.com>2016-07-04 21:00:57 +0200
commit1dfd977ec43370da6931b11a8d0469792c8ebc36 (patch)
tree81d3747e51737a4b4abf6ff243797bf9679765ea /src/guiChatConsole.cpp
parentf64914708092958f735337b3a14a33ca402b7893 (diff)
downloadminetest-1dfd977ec43370da6931b11a8d0469792c8ebc36.tar.gz
minetest-1dfd977ec43370da6931b11a8d0469792c8ebc36.tar.bz2
minetest-1dfd977ec43370da6931b11a8d0469792c8ebc36.zip
Fix & make linux conditionals uniform (#4278)
The source used a hodge-podge of different combinations of different macros to check for linux: 'linux', '__linux', '__linux__'. As '__linux__' is standard (Posix), and the others are not, the source now uniformly uses __linux__. If either linux or __linux are defined, it is made sure that __linux__ is defined as well.
Diffstat (limited to 'src/guiChatConsole.cpp')
-rw-r--r--src/guiChatConsole.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/guiChatConsole.cpp b/src/guiChatConsole.cpp
index bb58d1305..8dd5ab032 100644
--- a/src/guiChatConsole.cpp
+++ b/src/guiChatConsole.cpp
@@ -630,7 +630,7 @@ bool GUIChatConsole::OnEvent(const SEvent& event)
}
else if(event.KeyInput.Char != 0 && !event.KeyInput.Control)
{
- #if (defined(linux) || defined(__linux))
+ #if (defined(__linux__))
wchar_t wc = L'_';
mbtowc( &wc, (char *) &event.KeyInput.Char, sizeof(event.KeyInput.Char) );
prompt.input(wc);