Przeglądaj źródła

simplify cdp_round function

richarddobson 2 lat temu
rodzic
commit
8cf2578ec6
1 zmienionych plików z 1 dodań i 8 usunięć
  1. 1 8
      dev/newinclude/sfsys.h

+ 1 - 8
dev/newinclude/sfsys.h

@@ -391,14 +391,7 @@ void Mfree(void *);
 
 
 /*CDP98: now a func, so can round negative numbers properly!*/
 /*CDP98: now a func, so can round negative numbers properly!*/
 /* NB in WIN32 sfsys.c: this is implemented in asssembler for great speed! */
 /* NB in WIN32 sfsys.c: this is implemented in asssembler for great speed! */
-#if defined _MSC_VER || defined __GNUWIN32__
-// NB: needs to be a long as lround is defined as such
-extern long cdp_round(double val);
-#define round(x) cdp_round((x))
-#endif
-#ifdef unix
-#define cdp_round(x) lround((x))
-#endif
+extern int cdp_round(double val);
 /* unix math.h does not include these macros */
 /* unix math.h does not include these macros */
 #ifndef __cplusplus
 #ifndef __cplusplus
 #ifndef min
 #ifndef min