diff --git a/source/build/src/kplib.cpp b/source/build/src/kplib.cpp index 5340d1d56..6fdc70aa4 100644 --- a/source/build/src/kplib.cpp +++ b/source/build/src/kplib.cpp @@ -35,22 +35,23 @@ credits. #include "pragmas.h" #if !defined(_WIN32) -#include -static inline int32_t _lrotl(int32_t i, int sh) { return (i >> (-sh)) | (i << sh); } +# include +static FORCE_INLINE CONSTEXPR int32_t klrotl(int32_t i, int sh) { return (i >> (-sh)) | (i << sh); } /*inline*/ int32_t filelength(int h) { struct stat st; if (fstat(h,&st) < 0) return -1; return st.st_size; } -#define _fileno fileno +# define _fileno fileno #else -#include -#ifdef __clang__ -#include -#else -#include -#endif +# define klrotl(i, sh) _lrotl(i, sh) +# include +# ifdef __clang__ +# include +# else +# include +# endif #endif //use GCC-specific extension to force symbol name to be something in particular to override underscoring. @@ -1980,17 +1981,17 @@ static int32_t kbmprend(const char *buf, int32_t fleng, case 16: for (x=x0; x