[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
Fri Oct 16 18:32:56 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
-
----------------
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`?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89588/new/

https://reviews.llvm.org/D89588



More information about the libcxx-commits mailing list