Minor build fixes, integrate XMMS into the autoconfed stuff
[platform/upstream/libvorbis.git] / lib / os.h
1 /********************************************************************
2  *                                                                  *
3  * THIS FILE IS PART OF THE Ogg Vorbis SOFTWARE CODEC SOURCE CODE.  *
4  * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
5  * THE GNU PUBLIC LICENSE 2, WHICH IS INCLUDED WITH THIS SOURCE.    *
6  * PLEASE READ THESE TERMS DISTRIBUTING.                            *
7  *                                                                  *
8  * THE OggSQUISH SOURCE CODE IS (C) COPYRIGHT 1994-2000             *
9  * by Monty <monty@xiph.org> and The XIPHOPHORUS Company            *
10  * http://www.xiph.org/                                             *
11  *                                                                  *
12  ********************************************************************
13
14  function: #ifdef jail to whip a few platforms into the UNIX ideal.
15  last mod: $Id: os.h,v 1.2 1999/12/30 07:26:46 xiphmont Exp $
16
17  ********************************************************************/
18
19 #ifndef _V_IFDEFJAIL_H_
20 #define _V_IFDEFJAIL_H_
21
22 #ifndef M_PI
23 #define M_PI (3.1415926539)
24 #endif
25
26 #ifndef rint
27 /* not strictly correct, but Vorbis doesn't care */
28 #define rint(x)   (floor((x)+0.5)) 
29 #endif
30
31 #ifndef alloca
32 #ifdef _WIN32
33 #define alloca(x) (_alloca(x))
34 #endif
35 #endif
36
37 #endif
38
39