From 15d0f327735b8fd2169c72ef923280e7e9d4978c Mon Sep 17 00:00:00 2001 From: Jan Hellwig Date: Mon, 31 Oct 2016 21:55:52 +0100 Subject: [PATCH] Fix Windows compilation with -fno-exceptions (#405) --- fmt/posix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fmt/posix.cc b/fmt/posix.cc index 0443bd1f..76eb7f05 100644 --- a/fmt/posix.cc +++ b/fmt/posix.cc @@ -135,7 +135,7 @@ fmt::LongLong fmt::File::size() const { if (size_lower == INVALID_FILE_SIZE) { DWORD error = GetLastError(); if (error != NO_ERROR) - throw WindowsError(GetLastError(), "cannot get file size"); + FMT_THROW(WindowsError(GetLastError(), "cannot get file size")); } fmt::ULongLong long_size = size_upper; return (long_size << sizeof(DWORD) * CHAR_BIT) | size_lower;