changeset 1603:3a633a3feef6 libavcodec

* fixes for broken builds on Solaris, OS2 and all bingendian systems out there.
author romansh
date Tue, 04 Nov 2003 19:35:43 +0000
parents fdb8244da1e5
children 21190cfac0e1
files common.h dsputil.h
diffstat 2 files changed, 16 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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 */
--- 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