3 /********************************************************************
5 * THIS FILE IS PART OF THE Ogg Vorbis SOFTWARE CODEC SOURCE CODE. *
6 * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
7 * THE GNU PUBLIC LICENSE 2, WHICH IS INCLUDED WITH THIS SOURCE. *
8 * PLEASE READ THESE TERMS DISTRIBUTING. *
10 * THE OggSQUISH SOURCE CODE IS (C) COPYRIGHT 1994-2000 *
11 * by Monty <monty@xiph.org> and The XIPHOPHORUS Company *
12 * http://www.xiph.org/ *
14 ********************************************************************
16 function: #ifdef jail to whip a few platforms into the UNIX ideal.
17 last mod: $Id: os.h,v 1.8 2000/07/07 00:48:19 xiphmont Exp $
19 ********************************************************************/
22 #ifndef _V_IFDEFJAIL_H_
23 #define _V_IFDEFJAIL_H_
26 #define M_PI (3.1415926539)
31 # define alloca(x) (_alloca(x))
32 # define rint(x) (floor((x)+0.5))
37 # define FAST_HYPOT(a, b) sqrt((a)*(a) + (b)*(b))
38 #else /* if not _WIN32 */
39 # define FAST_HYPOT hypot
53 # define min(x,y) ((x)>(y)?(y):(x))
57 # define max(x,y) ((x)<(y)?(y):(x))
60 #include "../include/vorbis/os_types.h"