Browse code

lavfi/xbr: undef PI if defined

This conflict with the DJGPP libc math.h which includes a PI macro (to
M_PI).

We cannot make DJGPP POSIX only (using -D_POSIX_SOURCE) to avoid this
kind of symbols conflicts due to the lack of both posix_memalign and
memalign (DJGPP non standard function) in that POSIX mode. We currently
rely on memalign for aligned heap allocation.

Clément Bœsch authored on 2017/03/27 03:51:14
Showing 1 changed files
... ...
@@ -37,6 +37,10 @@
37 37
 #define RED_BLUE_MASK 0x00FF00FF
38 38
 #define GREEN_MASK    0x0000FF00
39 39
 
40
+#ifdef PI
41
+#undef PI
42
+#endif
43
+
40 44
 typedef int (*xbrfunc_t)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
41 45
 
42 46
 typedef struct {