summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2017-05-29 22:10:58 +0800
committerSebastian Rasmussen <sebras@gmail.com>2017-05-31 20:29:30 +0800
commit73d7b296bd549a7e985ea9df9f13e6ad3701ef89 (patch)
tree357fe65b1ce76539d835e7e483802c146de70fad
parent80d517b757e2a97003138d8bd226621312b33d2d (diff)
downloadmupdf-73d7b296bd549a7e985ea9df9f13e6ad3701ef89.tar.xz
Change forgotten M_PI uses to FZ_PI.
-rw-r--r--include/mupdf/fitz/system.h4
1 files 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