mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Fix path detection with --std= parameter
Fixes path detection when compilers have been told to follow a standard, e.g. with -DCMAKE_CXX_FLAGS=--std=c++98. To see the passed defines, try this with and without the --std parameter: gcc -E -dM --std=c99 - < /dev/null | grep linux
This commit is contained in:
parent
b318c4712c
commit
4abb96fb54
@ -369,7 +369,7 @@ void initializePaths()
|
||||
/*
|
||||
Linux
|
||||
*/
|
||||
#elif defined(linux)
|
||||
#elif defined(linux) || defined(__linux)
|
||||
|
||||
char buf[BUFSIZ];
|
||||
memset(buf, 0, BUFSIZ);
|
||||
@ -465,7 +465,7 @@ void initializePaths()
|
||||
/*
|
||||
Linux
|
||||
*/
|
||||
#elif defined(linux)
|
||||
#elif defined(linux) || defined(__linux)
|
||||
|
||||
// Get path to executable
|
||||
std::string bindir = "";
|
||||
|
Loading…
Reference in New Issue
Block a user