[libcxx-commits] [PATCH] D89588: [libcxx] [test] Remove a duplicate definition of _CRT_SECURE_NO_WARNINGS
Casey Carter via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Oct 17 17:07:04 PDT 2020
CaseyCarter added inline comments.
================
Comment at: libcxx/test/support/msvc_stdlib_force_include.h:17
- // Silence warnings about CRT machinery.
- #define _CRT_SECURE_NO_WARNINGS
-
----------------
mstorsjo wrote:
> CaseyCarter wrote:
> > Instead of striking this, could we instead define it conditionally to 1:
> > ```
> > #ifndef _CRT_SECURE_NO_WARNINGS
> > #define _CRT_SECURE_NO_WARNINGS 1
> > #endif // _CRT_SECURE_NO_WARNINGS
> > ```
> > to preserve use cases that don't involve `config.py`?
> Sure, that's fine by me as well. And no new ifdef is needed if we just add the `1` to the definition.
Yes, thanks - I forget that redefinition is allowed when the replacement lists are identical.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89588/new/
https://reviews.llvm.org/D89588
More information about the libcxx-commits
mailing list