Skip to content

Commit

Permalink
Make sure _MSC_VER is defined when used
Browse files Browse the repository at this point in the history
  • Loading branch information
shilangyu authored and sharkdp committed Nov 2, 2023
1 parent d4932b2 commit 267e568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbg.h
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ inline bool pretty_print(std::ostream& stream, const time&) {
const auto us =
duration_cast<microseconds>(now.time_since_epoch()).count() % 1000000;
const auto hms = system_clock::to_time_t(now);
#if _MSC_VER >= 1600
#if defined(_MSC_VER) && _MSC_VER >= 1600
struct tm t;
localtime_s(&t, &hms);
const std::tm* tm = &t;
Expand Down

0 comments on commit 267e568

Please sign in to comment.