Sfoglia il codice sorgente

simplify calls to round

richarddobson 2 mesi fa
parent
commit
6c566955e3
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 2 3
      dev/new/newtex.c

+ 2 - 3
dev/new/newtex.c

@@ -64,9 +64,8 @@
 
 #ifdef unix
 #include <aaio.h>
-#define round(x) lround((x))
 #endif
-
+#define round(x) lround((x))
 char errstr[2400];
 
 int anal_infiles = 1;
@@ -1255,7 +1254,7 @@ int usage2(char *str)
         "\n"
         "Hit key 's' to continue to \"SPACETYPE\" information, or 'e' to exit.\n");
 
-        while((k = getch())!='s' && k != 'e')
+        while((k = _getch())!='s' && k != 'e')
             ;
         if(k == 's') {
             fprintf(stderr,