michael@0: #ifndef _OS_H michael@0: #define _OS_H michael@0: /******************************************************************** michael@0: * * michael@0: * THIS FILE IS PART OF THE OggVorbis 'TREMOR' CODEC SOURCE CODE. * michael@0: * * michael@0: * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * michael@0: * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * michael@0: * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * michael@0: * * michael@0: * THE OggVorbis 'TREMOR' SOURCE CODE IS (C) COPYRIGHT 1994-2002 * michael@0: * BY THE Xiph.Org FOUNDATION http://www.xiph.org/ * michael@0: * * michael@0: ******************************************************************** michael@0: michael@0: function: #ifdef jail to whip a few platforms into the UNIX ideal. michael@0: michael@0: ********************************************************************/ michael@0: michael@0: #include michael@0: #include michael@0: michael@0: #ifndef _V_IFDEFJAIL_H_ michael@0: # define _V_IFDEFJAIL_H_ michael@0: michael@0: # ifdef __GNUC__ michael@0: # define STIN static __inline__ michael@0: # elif _WIN32 michael@0: # define STIN static __inline michael@0: # endif michael@0: #else michael@0: # define STIN static michael@0: #endif michael@0: michael@0: #ifndef M_PI michael@0: # define M_PI (3.1415926536f) michael@0: #endif michael@0: michael@0: #ifdef _WIN32 michael@0: # include michael@0: # define rint(x) (floor((x)+0.5f)) michael@0: # define NO_FLOAT_MATH_LIB michael@0: # define FAST_HYPOT(a, b) sqrt((a)*(a) + (b)*(b)) michael@0: # define LITTLE_ENDIAN 1 michael@0: # define BYTE_ORDER LITTLE_ENDIAN michael@0: #endif michael@0: michael@0: #ifdef HAVE_ALLOCA_H michael@0: # include michael@0: #endif michael@0: michael@0: #ifdef USE_MEMORY_H michael@0: # include michael@0: #endif michael@0: michael@0: #ifndef min michael@0: # define min(x,y) ((x)>(y)?(y):(x)) michael@0: #endif michael@0: michael@0: #ifndef max michael@0: # define max(x,y) ((x)<(y)?(y):(x)) michael@0: #endif michael@0: michael@0: #endif /* _OS_H */