#ifndef _OS_H1#define _OS_H2/********************************************************************3* *4* THIS FILE IS PART OF THE OggVorbis 'TREMOR' CODEC SOURCE CODE. *5* *6* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *7* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *8* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *9* *10* THE OggVorbis 'TREMOR' SOURCE CODE IS (C) COPYRIGHT 1994-2002 *11* BY THE Xiph.Org FOUNDATION http://www.xiph.org/ *12* *13********************************************************************1415function: #ifdef jail to whip a few platforms into the UNIX ideal.1617********************************************************************/1819#include <math.h>20#include "os_types.h"2122#ifndef _V_IFDEFJAIL_H_23# define _V_IFDEFJAIL_H_2425# ifdef __GNUC__26# define STIN static __inline__27# elif _WIN3228# define STIN static __inline29# endif30#else31# define STIN static32#endif3334#ifndef M_PI35# define M_PI (3.1415926536f)36#endif3738#ifdef _WIN3239# include <malloc.h>40# define rint(x) (floor((x)+0.5f))41# define NO_FLOAT_MATH_LIB42# define FAST_HYPOT(a, b) sqrt((a)*(a) + (b)*(b))43# define LITTLE_ENDIAN 144# define BYTE_ORDER LITTLE_ENDIAN45#endif4647#ifdef HAVE_ALLOCA_H48# include <alloca.h>49#endif5051#ifdef USE_MEMORY_H52# include <memory.h>53#endif5455#ifndef min56# define min(x,y) ((x)>(y)?(y):(x))57#endif5859#ifndef max60# define max(x,y) ((x)<(y)?(y):(x))61#endif6263#endif /* _OS_H */646566