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

Cleanup C++ compiler macros usage #1609

Merged
merged 5 commits into from
Dec 19, 2023
Merged

Conversation

externl
Copy link
Member

@externl externl commented Dec 19, 2023

This PR is a backport of 158c193

@externl externl requested a review from pepone December 19, 2023 15:20
Copy link
Member

@pepone pepone left a 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)) || \
Copy link
Member

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__

Copy link
Member Author

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.

Copy link
Member Author

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.

@@ -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)
Copy link
Member

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
Copy link
Member

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

@externl
Copy link
Member Author

externl commented Dec 19, 2023

I also removed Atomic.h

@externl externl merged commit 2edd182 into zeroc-ice:main Dec 19, 2023
1 of 2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants