mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 06:16:36 +00:00
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:
parent
e250e9c5ba
commit
b804d53320
1 changed files with 2 additions and 0 deletions
|
@ -23,7 +23,9 @@
|
||||||
/* This header is not included automatically via gst/gst.h, you need to
|
/* This header is not included automatically via gst/gst.h, you need to
|
||||||
* include it explicitly if you need it. */
|
* include it explicitly if you need it. */
|
||||||
|
|
||||||
|
#ifndef _USE_MATH_DEFINES
|
||||||
#define _USE_MATH_DEFINES /* so MSVC defines M_PI etc. */
|
#define _USE_MATH_DEFINES /* so MSVC defines M_PI etc. */
|
||||||
|
#endif
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
Loading…
Reference in a new issue