Преглед изворни кода

moved cdp headers to top to avert low-level ambiguitites in MinGW

richarddobson пре 1 месец
родитељ
комит
4415091fb0
1 измењених фајлова са 8 додато и 5 уклоњено
  1. 8 5
      dev/externals/reverb/reverb.cpp

+ 8 - 5
dev/externals/reverb/reverb.cpp

@@ -19,6 +19,13 @@
  */
  
 /* MODULE FOR REVERB.EXE */
+/* RWD Nov 2025 moved to top to avoid low-level cpp lib definition ambiguities in MinGW */
+extern "C" {
+#include <sfsys.h>
+#include <osbind.h>
+#include <cdplib.h>	   //NB requires stdio.h etc - time to change this?
+}
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <math.h>
@@ -39,11 +46,7 @@ using namespace std;
   then we set igain = g(1 - filtgain), officially...
 
   */
-extern "C" {
-#include <sfsys.h>
-#include <osbind.h>
-#include <cdplib.h>	   //NB requires stdio.h etc - time to change this?
-}
+
 #include "reverberator.h"
 #include <string.h>
 void usage(void);