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

Checking MSVC predefined macro. #45

Merged
merged 1 commit into from
Aug 6, 2020

Conversation

seanyen
Copy link
Contributor

@seanyen seanyen commented Aug 6, 2020

This change is to check the Windows platform and MSVC compiler by its predefined macro, such as _MSC_VER and _WIN32. This is motivated by consuming those header from non-CMake projects, where some macro, such as MSVC and WIN32, are not defined by default.

And please consider to back-port to melodic branch.

@dirk-thomas dirk-thomas changed the title [noetic] Checking MSVC predefined macro. Checking MSVC predefined macro. Aug 6, 2020
@dirk-thomas
Copy link
Member

Thanks for the patch.

@dirk-thomas dirk-thomas merged commit 200a7b8 into ros:noetic-devel Aug 6, 2020
dirk-thomas pushed a commit that referenced this pull request Aug 6, 2020
@dirk-thomas
Copy link
Member

Cherry-picked to melodic-devel in 4fd1671.

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.

None yet

2 participants