You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here HAVE_CXX11_ATOMIC is defined in config.h which is generated and used in the build stage, while the macro is missing when the header is included by some other projects. Since the user holds no information about whether or not the macro is defined in the build stage, I think it's necessary to enable the feature by checking @ac_cv_have_cxx11_atomic@ rather then by checking macro definition. At least, the macro should be defined somewhere such as export.h.
Moreover, it has caused incorrect inclusion of windows.h due to that OS_WINDOWS is a commonly defined macro. It's really a torture when debugging for it.
The text was updated successfully, but these errors were encountered:
Missing HAVE_CXX11_ATOMIC definition is indeed an error. However, I'm not sure I understand this part:
Moreover, it has caused incorrect inclusion of windows.h due to that OS_WINDOWS is a commonly defined macro. It's really a torture when debugging for it.
What do you mean by "commonly defined"? Is there an OS_WINDOWS definition with a completely different semantic? Can you provide an example?
sergiud
added a commit
to sergiud/glog
that referenced
this issue
Jun 15, 2021
glog/src/glog/logging.h.in
Lines 102 to 106 in c1499f6
Here HAVE_CXX11_ATOMIC is defined in
config.h
which is generated and used in the build stage, while the macro is missing when the header is included by some other projects. Since the user holds no information about whether or not the macro is defined in the build stage, I think it's necessary to enable the feature by checking@ac_cv_have_cxx11_atomic@
rather then by checking macro definition. At least, the macro should be defined somewhere such asexport.h
.Moreover, it has caused incorrect inclusion of
windows.h
due to thatOS_WINDOWS
is a commonly defined macro. It's really a torture when debugging for it.The text was updated successfully, but these errors were encountered: