From 640e5478862e3b83d85db6332e0d82a45a95e4ed Mon Sep 17 00:00:00 2001 From: skidd13 Date: Sun, 22 Jun 2008 15:21:51 +0000 Subject: (svn r13606) -Codechange: use "static FORCEINLINE" where possible as default for core functions (big functions use just inline instead) --- src/core/endian_func.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/endian_func.hpp') diff --git a/src/core/endian_func.hpp b/src/core/endian_func.hpp index 9032b4cef..2b80ccc68 100644 --- a/src/core/endian_func.hpp +++ b/src/core/endian_func.hpp @@ -33,12 +33,12 @@ #define TO_LE32X(x) (x) #endif /* TTD_ENDIAN == TTD_BIG_ENDIAN */ -static inline uint16 ReadLE16Aligned(const void *x) +static FORCEINLINE uint16 ReadLE16Aligned(const void *x) { return FROM_LE16(*(const uint16*)x); } -static inline uint16 ReadLE16Unaligned(const void *x) +static FORCEINLINE uint16 ReadLE16Unaligned(const void *x) { #if OTTD_ALIGNMENT == 1 return ((const byte*)x)[0] | ((const byte*)x)[1] << 8; -- cgit v1.2.3-54-g00ecf