gst/replaygain/rganalysis.c: Fix wrong ifdef for visual C++. Fixes: #437403.
[platform/upstream/gst-plugins-good.git] / gst / replaygain / rganalysis.c
index b20a08f..70fa24c 100644 (file)
@@ -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