win32/HResult: use [[gnu::const]]

This commit is contained in:
Max Kellermann 2023-01-23 15:34:42 +01:00
parent 6cc532c9a0
commit 76177dbc79
2 changed files with 1 additions and 4 deletions

View File

@ -23,7 +23,6 @@
#endif
#include "HResult.hxx"
#include "system/Error.hxx"
#include <cassert>
#include <cstdio>

View File

@ -20,14 +20,12 @@
#ifndef MPD_WIN32_HRESULT_HXX
#define MPD_WIN32_HRESULT_HXX
#include "util/Compiler.h"
#include <string_view>
#include <system_error>
#include <windef.h>
gcc_const
[[gnu::const]]
std::string_view
HRESULTToString(HRESULT result) noexcept;