We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
At least: __linux__ and __APPLE__.
__linux__
__APPLE__
The text was updated successfully, but these errors were encountered:
It seems like gfortran does not support __APPLE__.
gfortran
% cat examples/expr2.f90 program test #ifdef _WIN32 print *,'Windows' #endif #ifdef __linux print *,'Linux' #endif #ifdef __APPLE__ print *,'OSX' #endif end program % gfortran examples/expr2.f90 -cpp % ./a.out % cat examples/expr2.cpp #include<iostream> int main() { #ifdef _WIN32 std::cout << "Windows" << std::endl; #endif #ifdef __linux std::cout << "Linux" << std::endl; #endif #ifdef __APPLE__ std::cout << "OSX" << std::endl; #endif return 0; } % g++ examples/expr2.cpp % ./a.out OSX
Sorry, something went wrong.
APPLE
LINUX
Successfully merging a pull request may close this issue.
At least:
__linux__
and__APPLE__
.The text was updated successfully, but these errors were encountered: