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:
parent
52f46b94e9
commit
95ad1b0cc6
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue