From 6d6872b708bbcefdc4dabb9fd0d0b0b2e7dcd918 Mon Sep 17 00:00:00 2001 From: louis- Date: Tue, 23 Sep 2014 21:51:27 +0200 Subject: [PATCH] Maths defines for windows --- src/rpn-trig.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rpn-trig.h b/src/rpn-trig.h index 221e022..b11314d 100644 --- a/src/rpn-trig.h +++ b/src/rpn-trig.h @@ -1,5 +1,10 @@ #define _USE_MATH_DEFINES +#ifdef WIN32 +#define M_PI 3.141592653589793238462643383279502797479068098137295573004504331874296718662975536062731407582759857177734375 +#define M_E 2.71828182845904523536028747135266231435842186719354886266923086032766716801933881697550532408058643341064453125 +#endif + // void pi(void) {