math-compat: don't re-define _USE_MATH_DEFINES if already defined

This avoids compiler warnings.

https://bugzilla.gnome.org/show_bug.cgi?id=633886
This commit is contained in:
Vladimir Eremeev 2010-11-03 14:21:02 +00:00 committed by Tim-Philipp Müller
parent e250e9c5ba
commit b804d53320

View file

@ -23,7 +23,9 @@
/* This header is not included automatically via gst/gst.h, you need to
* include it explicitly if you need it. */
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES /* so MSVC defines M_PI etc. */
#endif
#include <math.h>
#include <glib.h>