null+****@clear*****
null+****@clear*****
2012年 3月 4日 (日) 16:51:50 JST
Kouhei Sutou 2012-03-04 16:51:50 +0900 (Sun, 04 Mar 2012)
New Revision: aaaa732e688d812951ecb484eaac677867ae253c
Log:
[solaris] use found fpclassify() when it's found
Modified files:
lib/groonga_in.h
Modified: lib/groonga_in.h (+8 -6)
===================================================================
--- lib/groonga_in.h 2012-03-04 16:48:25 +0900 (829f5f9)
+++ lib/groonga_in.h 2012-03-04 16:51:50 +0900 (08eceee)
@@ -192,12 +192,14 @@ typedef int grn_sock;
# define grn_sock_close close
# define CALLBACK
-# if (defined(__sun) && defined(__SVR4) && !HAVE_FPCLASSIFY) /* SUN */
-# define HAVE_FPCLASSIFY 1
-# include <ieeefp.h>
-# define fpclassify fpclass
-# define CASE_FP_NAN case FP_SNAN: case FP_QNAN:
-# define CASE_FP_INFINITE case FP_NINF: case FP_PINF:
+# if (defined(__sun) && defined(__SVR4)) /* SUN */
+# ifndef HAVE_FPCLASSIFY
+# define HAVE_FPCLASSIFY 1
+# include <ieeefp.h>
+# define fpclassify fpclass
+# define CASE_FP_NAN case FP_SNAN: case FP_QNAN:
+# define CASE_FP_INFINITE case FP_NINF: case FP_PINF:
+# endif /* HAVE_FPCLASSIFY */
# else /* SUN */
# define CASE_FP_NAN case FP_NAN:
# define CASE_FP_INFINITE case FP_INFINITE: