-
Notifications
You must be signed in to change notification settings - Fork 592
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
Cleanup C++ compiler macros usage #1609
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@@ -109,7 +109,7 @@ | |||
// | |||
#if (ICE_CPLUSPLUS >= 201103) || \ | |||
((defined(__GNUC__) && defined(__GXX_EXPERIMENTAL_CXX0X__) && ((__GNUC__* 100) + __GNUC_MINOR__) >= 405)) || \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not clear that we need to keep this branch with __GXX_EXPERIMENTAL_CXX0X__
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll want to clean this up anyway soon since all our compilers will be c++11 at least.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll leave it like it is for now.
cpp/src/IceUtil/UtilException.cpp
Outdated
@@ -43,7 +43,7 @@ | |||
# endif | |||
# endif | |||
|
|||
# if !defined(_AIX) && !defined(__sun) && !defined(__FreeBSD__) && !defined(__MINGW32__) && !defined(ICE_STATIC_LIBS) | |||
# if !defined(_AIX) && !defined(__sun) && !defined(__FreeBSD__) && !defined(ICE_STATIC_LIBS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can also remove !defined(__sun)
as we removed other Sun related macros
# endif | ||
# define DBGHELP_TRANSLATE_TCHAR | ||
# include <IceUtil/StringConverter.h> | ||
# pragma warning(disable:4091) // VS 2015 RC issues this warning for code in DbgHelp.h |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a TODO for this one, not clear it is required with Visual Studio 2022
I also removed Atomic.h |
This PR is a backport of 158c193