Fix path detection with --std= parameter
authorest31 <MTest31@outlook.com>
Fri, 17 Apr 2015 03:05:52 +0000 (05:05 +0200)
committerest31 <MTest31@outlook.com>
Fri, 17 Apr 2015 03:12:06 +0000 (05:12 +0200)
commit4abb96fb546b5975c74ff2cc295255fe17126287
treef7a96538381cae3278647106f0111b2afff46fcf
parentb318c4712c1b84e2c3d71396095ea0f3df0d209d
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
src/porting.cpp