[xiph-cvs] cvs commit: vorbis/lib os.h
Jeff Squyres
jsquyres at xiph.org
Sun Feb 18 21:35:00 PST 2001
jsquyres 01/02/18 21:35:00
Modified: lib os.h
Log:
Added exception to not use the "f" versions of the math functions when
not compiling with gcc (gotta love negative logic!).
Apparently, this was exception was in here back in version 1.20, but
with slightly different logic. When the logic got changed, it seems
that this exception got lost.
Without this exception, compiling with the native solaris compilers
barfs because most of these functions don't exist on solaris.
Revision Changes Path
1.23 +5 -1 vorbis/lib/os.h
Index: os.h
===================================================================
RCS file: /usr/local/cvsroot/vorbis/lib/os.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- os.h 2001/02/02 03:51:57 1.22
+++ os.h 2001/02/19 05:34:59 1.23
@@ -13,7 +13,7 @@
********************************************************************
function: #ifdef jail to whip a few platforms into the UNIX ideal.
- last mod: $Id: os.h,v 1.22 2001/02/02 03:51:57 xiphmont Exp $
+ last mod: $Id: os.h,v 1.23 2001/02/19 05:34:59 jsquyres Exp $
********************************************************************/
@@ -40,6 +40,10 @@
# define rint(x) (floor((x)+0.5f))
# define NO_FLOAT_MATH_LIB
# define FAST_HYPOT(a, b) sqrt((a)*(a) + (b)*(b))
+#endif
+
+#ifndef __GNUC__
+# define NO_FLOAT_MATH_LIB
#endif
#ifdef DARWIN
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list