Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not redefine _CRT_SECURE_NO_WARNINGS if it's defined
Old test checked `defined(_WIN32) || defined(_WIN64)`, which is redundant. `_WIN32` is always defined for `_WIN64` builds as well (https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-170&redirectedfrom=MSDN): ``` _WIN32 Defined as 1 when the compilation target is 32-bit ARM, 64-bit ARM, x86, or x64. Otherwise, undefined ``` `_CRT_SECURE_NO_WARNINGS` could be defined externally, this code would produce this warning: ``` 1>D:\abseil-cpp\absl\time\internal\cctz\src\time_zone_libc.cc(16,9): warning C4005: '_CRT_SECURE_NO_WARNINGS': macro redefinition ``` The PR addresses the issue.
- Loading branch information