Bläddra i källkod

simplify calls to round

richarddobson 1 månad sedan
förälder
incheckning
689c327f15
2 ändrade filer med 4 tillägg och 2 borttagningar
  1. 2 0
      dev/sndinfo/compare.c
  2. 2 2
      dev/sndinfo/musunit.c

+ 2 - 0
dev/sndinfo/compare.c

@@ -42,6 +42,8 @@
 #include <string.h>
 #include <math.h>
 
+#define round(x) lround((x))
+
 #define SPACECNT    (32)
 
 static int  try_header(int chans,double inverse_sr,dataptr dz);

+ 2 - 2
dev/sndinfo/musunit.c

@@ -37,9 +37,9 @@
 #include <ctype.h>
 #include <sfsys.h>
 
-#if defined unix || defined __GNUC__
+//#if defined unix || defined __GNUC__
 #define round(x) lround((x))
-#endif
+//#endif
 
 #define NOTEMIN                 ("A-4")
 #define NOTEMAX                 ("G5")