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/util/HugeAllocator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/HugeAllocator.cxx') diff --git a/src/util/HugeAllocator.cxx b/src/util/HugeAllocator.cxx index 5116a5923..806a7836a 100644 --- a/src/util/HugeAllocator.cxx +++ b/src/util/HugeAllocator.cxx @@ -96,7 +96,7 @@ HugeDiscard(void *p, size_t size) noexcept #endif } -#elif defined(WIN32) +#elif defined(_WIN32) void * HugeAllocate(size_t size) -- cgit v1.2.3