mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
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.
This commit is contained in:
parent
f649147080
commit
1dfd977ec4
5 changed files with 14 additions and 10 deletions
|
@ -271,7 +271,7 @@ bool intlGUIEditBox::OnEvent(const SEvent& event)
|
|||
break;
|
||||
case EET_KEY_INPUT_EVENT:
|
||||
{
|
||||
#if (defined(linux) || defined(__linux) || defined(__FreeBSD__))
|
||||
#if (defined(__linux__) || defined(__FreeBSD__))
|
||||
// ################################################################
|
||||
// ValkaTR:
|
||||
// This part is the difference from the original intlGUIEditBox
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue