diff options
author | Jan Hellwig <JanHellwig@users.noreply.github.com> | 2016-10-31 21:55:52 +0100 |
---|---|---|
committer | Jonathan Müller <jonathanmueller.dev@gmail.com> | 2016-10-31 21:55:52 +0100 |
commit | 15d0f327735b8fd2169c72ef923280e7e9d4978c (patch) | |
tree | 778ec324af3e85e657ba03e7bf5e8a6c4d08fb40 | |
parent | 8c63ea432c7985eb056f1457d7edc8574d4fa2f8 (diff) | |
download | fmtlib-15d0f327735b8fd2169c72ef923280e7e9d4978c.tar.gz |
Fix Windows compilation with -fno-exceptions (#405)
-rw-r--r-- | fmt/posix.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |