os.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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. function: #ifdef jail to whip a few platforms into the UNIX ideal.
  14. last mod: $Id: os.h,v 1.2.4.1 2000/04/06 15:59:37 xiphmont Exp $
  15. ********************************************************************/
  16. #ifndef _V_IFDEFJAIL_H_
  17. #define _V_IFDEFJAIL_H_
  18. #ifndef M_PI
  19. #define M_PI (3.1415926539)
  20. #endif
  21. #ifdef _WIN32
  22. #define alloca(x) (_alloca(x))
  23. /* not strictly correct, but Vorbis doesn't care */
  24. #define rint(x) (floor((x)+0.5))
  25. #endif
  26. #endif