From b804d533204183b2ef72bf0105e1df9ea359893e Mon Sep 17 00:00:00 2001 From: Vladimir Eremeev Date: Wed, 3 Nov 2010 14:21:02 +0000 Subject: [PATCH] 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 --- gst/math-compat.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/math-compat.h b/gst/math-compat.h index 02a2b52844..d9b368cfee 100644 --- a/gst/math-compat.h +++ b/gst/math-compat.h @@ -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 #include