win32/HResult: use [[gnu::const]]
This commit is contained in:
@@ -23,7 +23,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "HResult.hxx"
|
#include "HResult.hxx"
|
||||||
#include "system/Error.hxx"
|
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
@@ -20,14 +20,12 @@
|
|||||||
#ifndef MPD_WIN32_HRESULT_HXX
|
#ifndef MPD_WIN32_HRESULT_HXX
|
||||||
#define MPD_WIN32_HRESULT_HXX
|
#define MPD_WIN32_HRESULT_HXX
|
||||||
|
|
||||||
#include "util/Compiler.h"
|
|
||||||
|
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
#include <system_error>
|
#include <system_error>
|
||||||
|
|
||||||
#include <windef.h>
|
#include <windef.h>
|
||||||
|
|
||||||
gcc_const
|
[[gnu::const]]
|
||||||
std::string_view
|
std::string_view
|
||||||
HRESULTToString(HRESULT result) noexcept;
|
HRESULTToString(HRESULT result) noexcept;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user