Skip to content
Snippets Groups Projects
Commit 4abb96fb authored by est31's avatar est31
Browse files

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
parent b318c471
No related branches found
No related tags found
No related merge requests found
......@@ -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 = "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment