2 * Include the basic standard libc headers.
10 #include <limits.h> /* INT_MIN, MAX ... */
11 #include <float.h> /* DBL_EPSILON */
15 #include <fcntl.h> /* O_RDONLY & co */
17 /* not supposed to be here, but printf debugging sorta needs it */
21 # define vsnprintf _vsnprintf
35 /*#define inline __inline*/
38 /*#define inline __inline*/
40 #define FORCEINLINE __forceinline
46 #define inline __inline__
47 #define FORCEINLINE __inline__
52 #define va_copy(a,b) (a) = (b)
60 * Extras! Extras! Get them while they're hot!
80 #define M_E 2.71828182845904523536
81 #define M_LOG2E 1.44269504088896340736
82 #define M_LOG10E 0.434294481903251827651
83 #define M_LN2 0.693147180559945309417
84 #define M_LN10 2.30258509299404568402
85 #define M_PI (float)3.14159265358979323846
86 #define M_PI_2 1.57079632679489661923
87 #define M_PI_4 0.785398163397448309616
88 #define M_1_PI 0.318309886183790671538
89 #define M_2_PI 0.636619772367581343076
90 #define M_1_SQRTPI 0.564189583547756286948
91 #define M_2_SQRTPI 1.12837916709551257390
92 #define M_SQRT2 1.41421356237309504880
93 #define M_SQRT_2 0.707106781186547524401
97 extern int strlcpy(char *dst
, const char *src
, int n
);
98 extern int strlcat(char *dst
, const char *src
, int n
);
102 extern char *strsep(char **stringp
, const char *delim
);
106 extern int getopt(int nargc
, char * const * nargv
, const char *ostr
);
107 extern int opterr
, optind
, optopt
;