in my centos7.0 system, when i compile the code with g++ test.cpp -o test, the output is "is linux system"
when compile with g++ test.cpp -std=c++11 -o test the output is "is not linux system"
why in c11 the compiler default macro changed?
test.cpp
#include <iostream>
using namespace std;
int main(){
    #ifdef linux
        cout<<"is linux system\n";
    #else
        cout<<"is not linux system\n";
    #endif
    return 0;
}
 
     
    