From: Mike Smith Date: Mon, 6 Nov 2000 11:55:44 +0000 (+0000) Subject: Use macros instead of inline for the generic (non-optimised) float->int X-Git-Tag: v1.3.3~1119 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ebd6d5e3829ed7b468b4a47ce9b3ca6e8469896f;p=platform%2Fupstream%2Flibvorbis.git Use macros instead of inline for the generic (non-optimised) float->int conversion. Now it should compile on things other than gcc. svn path=/trunk/vorbis/; revision=1000 --- diff --git a/lib/os.h b/lib/os.h index e08432f..953dfc0 100644 --- a/lib/os.h +++ b/lib/os.h @@ -14,7 +14,7 @@ ******************************************************************** function: #ifdef jail to whip a few platforms into the UNIX ideal. - last mod: $Id: os.h,v 1.12 2000/11/06 08:55:15 jack Exp $ + last mod: $Id: os.h,v 1.13 2000/11/06 11:55:44 msmith Exp $ ********************************************************************/ @@ -111,14 +111,12 @@ static __inline void vorbis_fpu_setround(vorbis_fpu_control *fpu){ static __inline void vorbis_fpu_restore(vorbis_fpu_control fpu){ } #else -static inline void vorbis_fpu_setround(vorbis_fpu_control *fpu){ -} +/* We don't have special code for this compiler/arch, so do it the slow way */ +#define vorbis_fpu_setround(vorbis_fpu_control) {} +#define vorbis_fpu_restore(vorbis_fpu_control) {} -static inline void vorbis_fpu_restore(vorbis_fpu_control fpu){ -} #endif - #endif #endif /* _OS_H */