# HG changeset patch # User romansh # Date 1067974543 0 # Node ID 3a633a3feef60fa17847c094596825eacaa91728 # Parent fdb8244da1e50fc1b165dfed3c0527560e777b9a * fixes for broken builds on Solaris, OS2 and all bingendian systems out there. diff -r fdb8244da1e5 -r 3a633a3feef6 common.h --- a/common.h Mon Nov 03 18:06:54 2003 +0000 +++ b/common.h Tue Nov 04 19:35:43 2003 +0000 @@ -82,6 +82,22 @@ # define always_inline inline #endif +#ifdef EMULATE_FAST_INT +/* note that we don't emulate 64bit ints */ +typedef signed char int_fast8_t; +typedef signed int int_fast16_t; +typedef signed int int_fast32_t; +typedef unsigned char uint_fast8_t; +typedef unsigned int uint_fast16_t; +typedef unsigned int uint_fast32_t; +#endif + +#if defined(CONFIG_OS2) || defined(CONFIG_SUNOS) +static inline float floorf(float f) { + return floor(f); +} +#endif + #ifdef CONFIG_WIN32 /* windows */ diff -r fdb8244da1e5 -r 3a633a3feef6 dsputil.h --- a/dsputil.h Mon Nov 03 18:06:54 2003 +0000 +++ b/dsputil.h Tue Nov 04 19:35:43 2003 +0000 @@ -502,10 +502,4 @@ } #endif -#if defined(CONFIG_OS2) || defined(CONFIG_SUNOS) -static inline float floorf(float f) { - return floor(f); -} #endif - -#endif