diff options
author | Rogier-5 <Rogier-5@users.noreply.github.com> | 2016-07-04 21:00:57 +0200 |
---|---|---|
committer | est31 <est31@users.noreply.github.com> | 2016-07-04 21:00:57 +0200 |
commit | 1dfd977ec43370da6931b11a8d0469792c8ebc36 (patch) | |
tree | 81d3747e51737a4b4abf6ff243797bf9679765ea /src/porting.cpp | |
parent | f64914708092958f735337b3a14a33ca402b7893 (diff) | |
download | minetest-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/porting.cpp')
-rw-r--r-- | src/porting.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/porting.cpp b/src/porting.cpp index 7ded58b3f..02ce6174b 100644 --- a/src/porting.cpp +++ b/src/porting.cpp @@ -258,7 +258,7 @@ bool getCurrentExecPath(char *buf, size_t len) //// Linux -#elif defined(linux) || defined(__linux) || defined(__linux__) +#elif defined(__linux__) bool getCurrentExecPath(char *buf, size_t len) { @@ -374,7 +374,7 @@ bool setSystemPaths() //// Linux -#elif defined(linux) || defined(__linux) +#elif defined(__linux__) bool setSystemPaths() { |