glalpha: fix compilation with msvc
authorMatthew Waters <matthew@centricular.com>
Thu, 7 Jun 2018 03:58:43 +0000 (13:58 +1000)
committerMatthew Waters <matthew@centricular.com>
Thu, 7 Jun 2018 04:23:55 +0000 (14:23 +1000)
It doesn't define M_PI

ext/gl/gstglalpha.c

index aa82dc2..bf09049 100644 (file)
 #include <math.h>
 #include <gst/gl/gstglfuncs.h>
 
+#ifndef M_PI
+#define M_PI  3.14159265358979323846
+#endif
+
 GST_DEBUG_CATEGORY_STATIC (glalpha_debug);
 #define GST_CAT_DEFAULT glalpha_debug