summaryrefslogtreecommitdiff
path: root/libc/src/__support/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/src/__support/endian.h')
-rw-r--r--libc/src/__support/endian.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/src/__support/endian.h b/libc/src/__support/endian.h
index 1bdccd855a48..cc4eaa29ff34 100644
--- a/libc/src/__support/endian.h
+++ b/libc/src/__support/endian.h
@@ -32,8 +32,8 @@ namespace internal {
template <unsigned ORDER> struct Endian {
static constexpr const bool IS_LITTLE = ORDER == __ORDER_LITTLE_ENDIAN__;
static constexpr const bool IS_BIG = ORDER == __ORDER_BIG_ENDIAN__;
- template <typename T> static T to_big_endian(T value);
- template <typename T> static T to_little_endian(T value);
+ template <typename T> LIBC_INLINE static T to_big_endian(T value);
+ template <typename T> LIBC_INLINE static T to_little_endian(T value);
};
// Little Endian specializations