-
Notifications
You must be signed in to change notification settings - Fork 199
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
__STDC_VERSION__ macro not always defined #116
Comments
You can always define Feel free to provide PR which solve this. |
I think I'm getting away with using
p.s.: as per https://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-4.2/c++config_8h.html , one should not use _GLIBCXX_HAVE_STDBOOL_H directly, but this might be a case where it's warranted. |
C++98 should have stdbool.h so should be fixed by #139 |
Please reopen if it is still an issue. |
I'm trying to use this library in a project with g++, and it seems that
__STDC_VERSION__
is not defined when compiling C++ (https://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html). This seems like it poses an issue where:C99
HAVE_STDBOOL
HAVE_STDBOOL
to be 0scpi-parser/libscpi/inc/scpi/types.h
Lines 53 to 55 in ef7112d
bool
, which causes a redeclaration error in C++:Should
__cplusplus
be used instead if it is defined to determine which language standard to define for the rest ofcc.h
?__cplusplus
should also have values like199711L
and201103L
.The text was updated successfully, but these errors were encountered: