summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2007-05-13 19:57:45 +0000
committerDavid Schleef <ds@schleef.org>2007-05-13 19:57:45 +0000
commit6eb0124ae65fcb49d1b999ce4b8d4d6faba0c05a (patch)
treecd2ae6a0d456ab873e9d427de07766c24316d324
parente8cabbd3fd9708299c25ea3acb5d3acb2101bfa5 (diff)
downloadgst-plugins-bad-6eb0124ae65fcb49d1b999ce4b8d4d6faba0c05a.tar.gz
gst-plugins-bad-6eb0124ae65fcb49d1b999ce4b8d4d6faba0c05a.tar.bz2
gst-plugins-bad-6eb0124ae65fcb49d1b999ce4b8d4d6faba0c05a.zip
gst/replaygain/rganalysis.c: Fix wrong ifdef for visual C++. Fixes: #437403.
Original commit message from CVS: * gst/replaygain/rganalysis.c: Fix wrong ifdef for visual C++. Fixes: #437403. By Ali Sabil <ali.sabil@gmail.com>.
-rw-r--r--ChangeLog6
-rw-r--r--gst/replaygain/rganalysis.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c49d0283..35adff20 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-05-13 David Schleef <ds@schleef.org>
+
+ * gst/replaygain/rganalysis.c:
+ Fix wrong ifdef for visual C++. Fixes: #437403.
+ By Ali Sabil <ali.sabil@gmail.com>.
+
2007-05-12 David Schleef <ds@schleef.org>
* ext/neon/gstneonhttpsrc.c:
diff --git a/gst/replaygain/rganalysis.c b/gst/replaygain/rganalysis.c
index b20a08f5..70fa24c5 100644
--- a/gst/replaygain/rganalysis.c
+++ b/gst/replaygain/rganalysis.c
@@ -115,8 +115,10 @@ struct _RgAnalysisCtx
* loudness filter. XFilter[ctx->sample_rate_index] gives the array
* of the X coefficients (A or B) for the configured sample rate. */
-#ifdef G_OS_WIN32
+#ifdef _MSC_VER
/* Disable double-to-float warning: */
+/* A better solution would be to append 'f' to each constant, but that
+ * makes the code ugly. */
#pragma warning ( disable : 4305 )
#endif
@@ -213,7 +215,7 @@ static const gfloat BButter[9][3] = {
{0.94597685600279, -1.89195371200558, 0.94597685600279}
};
-#ifdef G_OS_WIN32
+#ifdef _MSC_VER
#pragma warning ( default : 4305 )
#endif