summaryrefslogtreecommitdiffstats
path: root/gst/replaygain
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
commitbcbbda0b8031e0c089d9e42766331e14fd2d6254 (patch)
tree3f5e75d671cf8e2e4814ab62cd98401e51ebd3ad /gst/replaygain
parent603656d1bfc20dd128843ccd6209032e61b330f8 (diff)
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>.
Diffstat (limited to 'gst/replaygain')
-rw-r--r--gst/replaygain/rganalysis.c6
1 files changed, 4 insertions, 2 deletions
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