فهرست منبع

simplify cdp_round function

richarddobson 2 سال پیش
والد
کامیت
8cf2578ec6
1فایلهای تغییر یافته به همراه1 افزوده شده و 8 حذف شده
  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!*/
 /* 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 */
 #ifndef __cplusplus
 #ifndef min