Skip to content
New issue

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

Wrong detection of intsafe.h at MinGW (with GCC 4.8.1) #34

Open
tbeu opened this issue May 24, 2020 · 0 comments
Open

Wrong detection of intsafe.h at MinGW (with GCC 4.8.1) #34

tbeu opened this issue May 24, 2020 · 0 comments

Comments

@tbeu
Copy link
Contributor

tbeu commented May 24, 2020

It was reported in modelica/ModelicaStandardLibrary#3556 that the following lines

# if defined(__has_include)
# if __has_include(<intsafe.h>)
# define PSNIP_SAFE_HAVE_INTSAFE_H
# endif
# elif defined(_WIN32)
# define PSNIP_SAFE_HAVE_INTSAFE_H
# endif

are not protable enough for MinGW with GCC 4.8.1 (not exclusively to that version). The issue probably is, that old GCC 4.8.1 has no __has_include why it then sets PSNIP_SAFE_HAVE_INTSAFE_H in the else branch since MinGW defines _WIN32. AFAIK, there is no intsafe.h on MinGW yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant