Define constants of M_PI & M_PI_2.

This commit is contained in:
Casper Hornstrup 2003-07-15 20:45:49 +00:00 committed by Alexandre Julliard
parent 2f34e74ede
commit 601cdc939c

View file

@ -27,6 +27,7 @@
#define _GNU_SOURCE /* for pread/pwrite */
#include <fcntl.h>
#include <math.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_DIRECT_H
@ -116,6 +117,20 @@ struct statfs;
# define O_LARGEFILE 0
#endif
/****************************************************************
* Constants
*/
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#ifndef M_PI_2
#define M_PI_2 1.570796326794896619
#endif
/* Macros to define assembler functions somewhat portably */
#ifdef __GNUC__