Minor patch to compile with DJGPP
authorMonty <xiphmont@xiph.org>
Tue, 2 Sep 2003 05:11:53 +0000 (05:11 +0000)
committerMonty <xiphmont@xiph.org>
Tue, 2 Sep 2003 05:11:53 +0000 (05:11 +0000)
svn path=/trunk/vorbis/; revision=5282

lib/os.h

index 7268c3c..523cd5c 100644 (file)
--- a/lib/os.h
+++ b/lib/os.h
@@ -13,7 +13,7 @@
  ********************************************************************
 
  function: #ifdef jail to whip a few platforms into the UNIX ideal.
- last mod: $Id: os.h,v 1.32 2002/07/11 06:40:49 xiphmont Exp $
+ last mod: $Id: os.h,v 1.33 2003/09/02 05:11:53 xiphmont Exp $
 
  ********************************************************************/
 
 #    define STIN static __inline__
 #  elif _WIN32
 #    define STIN static __inline
-#else
-#  define STIN static
+#  else
+#    define STIN static
+#  endif
+
+#ifdef DJGPP
+#  define rint(x)   (floor((x)+0.5f))
 #endif
 
 #ifndef M_PI