From dfaf08743cade4c10c464bfbbb15d8f96c6e5cd9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 12 Dec 2017 10:22:20 +0100 Subject: *: check defined(_WIN32) instead of defined(WIN32) Only _WIN32 is defined by the compiler, and WIN32 is not standardized and may be missing. Closes #169 --- src/Stats.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Stats.cxx') diff --git a/src/Stats.cxx b/src/Stats.cxx index f558646e0..4f5275d7c 100644 --- a/src/Stats.cxx +++ b/src/Stats.cxx @@ -31,7 +31,7 @@ #include -#ifndef WIN32 +#ifndef _WIN32 /** * The monotonic time stamp when MPD was started. It is used to * calculate the uptime. @@ -114,7 +114,7 @@ stats_print(Response &r, const Partition &partition) { r.Format("uptime: %u\n" "playtime: %lu\n", -#ifdef WIN32 +#ifdef _WIN32 GetProcessUptimeS(), #else (unsigned)std::chrono::duration_cast(std::chrono::steady_clock::now() - start_time).count(), -- cgit v1.2.3