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

De-duplicate macro _CRT_SECURE_NO_WARNINGS / _CRT_SECURE_NO_DEPRECATE #136

Merged
merged 4 commits into from
Jun 28, 2020

Conversation

hcho3
Copy link
Contributor

@hcho3 hcho3 commented Mar 20, 2020

A downstream project may elect to define macros _CRT_SECURE_NO_WARNINGS / _CRT_SECURE_NO_DEPRECATE using CMake, so Rabit should check existence of these macros before defining them. Otherwise, we'd get a warning about duplicated macros.

@hcho3 hcho3 requested a review from trivialfis June 5, 2020 08:44
Copy link
Member

@trivialfis trivialfis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have 1 definition in rabit.h ?

@hcho3 hcho3 requested a review from trivialfis June 27, 2020 23:51
@hcho3 hcho3 merged commit 74bf00a into dmlc:master Jun 28, 2020
@hcho3 hcho3 deleted the deduplicate_crt_warning_macro branch June 28, 2020 16:52
@hcho3 hcho3 mentioned this pull request Jul 9, 2020
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