diff mbox

[FFmpeg-devel,3/3] lavfi/xbr: undef PI if defined

Message ID 20170326185359.5182-4-u@pkh.me
State Accepted
Commit 46068070314d56f66b681796635d38d497ef3bda
Headers show

Commit Message

Clément Bœsch March 26, 2017, 6:53 p.m. UTC
This conflict with the DJGPP libc math.h which includes a PI macro (to
M_PI).

We can not make DJGPP posix only to avoid the conflict due to the lack
of posix_memalign.
---
 libavfilter/vf_xbr.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/libavfilter/vf_xbr.c b/libavfilter/vf_xbr.c
index 9893e0cc80..d0d51045cc 100644
--- a/libavfilter/vf_xbr.c
+++ b/libavfilter/vf_xbr.c
@@ -37,6 +37,10 @@ 
 #define RED_BLUE_MASK 0x00FF00FF
 #define GREEN_MASK    0x0000FF00
 
+#ifdef PI
+#undef PI
+#endif
+
 typedef int (*xbrfunc_t)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
 
 typedef struct {