[Groonga-commit] groonga/groonga [master] [solaris] define HAVE_FPCLASSIFY with fallback macros

Back to archive index

null+****@clear***** null+****@clear*****
2012年 3月 4日 (日) 16:48:25 JST


Kouhei Sutou	2012-03-04 16:48:25 +0900 (Sun, 04 Mar 2012)

  New Revision: 6201ca884bad5c09376b3a9716eaf1df8b4f0c22

  Log:
    [solaris] define HAVE_FPCLASSIFY with fallback macros

  Modified files:
    lib/groonga_in.h

  Modified: lib/groonga_in.h (+2 -1)
===================================================================
--- lib/groonga_in.h    2012-03-04 16:46:32 +0900 (ebb0b5d)
+++ lib/groonga_in.h    2012-03-04 16:48:25 +0900 (829f5f9)
@@ -192,7 +192,8 @@ typedef int grn_sock;
 # define grn_sock_close close
 # define CALLBACK
 
-# if (defined(__sun) && defined(__SVR4)) /* SUN */
+# 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:




Groonga-commit メーリングリストの案内
Back to archive index