From 73d7b296bd549a7e985ea9df9f13e6ad3701ef89 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Mon, 29 May 2017 22:10:58 +0800 Subject: Change forgotten M_PI uses to FZ_PI. --- include/mupdf/fitz/system.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mupdf/fitz/system.h b/include/mupdf/fitz/system.h index 26d03e2c..571edf01 100644 --- a/include/mupdf/fitz/system.h +++ b/include/mupdf/fitz/system.h @@ -457,7 +457,7 @@ static inline float my_atan2f(float o, float a) s = my_atan_table[(i>>8)+1]; r += (s-r)*(i&255)/256.0f; if (o >= a) - r = (float)(M_PI/2.0f) - r; + r = (float)(FZ_PI/2.0f) - r; if (flip) r = FZ_PI - r; if (negate) @@ -466,7 +466,7 @@ static inline float my_atan2f(float o, float a) } #define sinf(x) my_sinf(x) -#define cosf(x) my_sinf((M_PI / 2.0f) + (x)) +#define cosf(x) my_sinf((FZ_PI / 2.0f) + (x)) #define atan2f(x,y) my_atan2f((x),(y)) #endif -- cgit v1.2.3