[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeutils/kcalc
From:       Adriaan de Groot <groot () kde ! org>
Date:       2005-02-15 19:40:02
Message-ID: 20050215194002.941831A2B8 () office ! kde ! org
[Download RAW message or body]

CVS commit by adridg: 

Not everyone has round()


  M +6 -0      configure.in.in   1.13
  M +6 -1      kcalctype.h   1.24


--- kdeutils/kcalc/configure.in.in  #1.12:1.13
@@ -57,2 +57,8 @@
   AC_DEFINE_UNQUOTED(HAVE_FUNC_ISINF, 1, [Define if you have isinf])
 ])
+AC_CHECK_LIB(m, round, [
+  AC_DEFINE_UNQUOTED(HAVE_FUNC_ROUND, 1, [Define if you have round])
+])
+AC_CHECK_LIB(m, roundl, [
+  AC_DEFINE_UNQUOTED(HAVE_FUNC_ROUNDL, 1, [Define if you have round])
+])

--- kdeutils/kcalc/kcalctype.h  #1.23:1.24
@@ -104,4 +104,9 @@
 #endif
 
+#if !defined(HAVE_FUNC_ROUND) && !defined(HAVE_FUNC_ROUNDL)
+        #undef  ROUND(X)
+        #define ROUND(X)        rint(X)
+#endif
+
 #undef HAVE_LONG_LONG
 #if defined(LLONG_MAX) && defined(HAVE_LONG_DOUBLE)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic