Minor changes to compile cleanly with MSVC++
[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-1999             *
9  * by 1999 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
16  ********************************************************************/
17
18 #ifndef _V_IFDEFJAIL_H_
19 #define _V_IFDEFJAIL_H_
20
21 #ifndef M_PI
22 #define M_PI (3.1415926539)
23 #endif
24
25 #ifndef rint
26 /* not strictly correct, but Vorbis doesn't care */
27 #define rint(x)   (floor((x)+0.5)) 
28 #endif
29
30 #ifndef alloca
31 #ifdef _WIN32
32 #define alloca(x) (_alloca(x))
33 #endif
34 #endif
35
36 #endif
37
38