use [[gnu::pure]] instead of gcc_pure

This is semi-standard and doesn't require the util/Compiler.h header.
This commit is contained in:
Max Kellermann 2021-02-08 14:59:40 +01:00 committed by Max Kellermann
parent 52f46b94e9
commit 95ad1b0cc6

View File

@ -30,8 +30,6 @@
#ifndef MIME_TYPE_HXX
#define MIME_TYPE_HXX
#include "util/Compiler.h"
#include <string>
#include <string_view>
#include <map>
@ -41,7 +39,7 @@
* part before the semicolon. If there is no semicolon, it returns
* the string as-is.
*/
gcc_pure
[[gnu::pure]]
std::string_view
GetMimeTypeBase(std::string_view s) noexcept;