[Groonga-commit] groonga/groonga [master] [solaris] add missing macros for fpclassify() when it's found

アーカイブの一覧に戻る

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


Kouhei Sutou	2012-03-04 17:48:40 +0900 (Sun, 04 Mar 2012)

  New Revision: ce9629834a4d4b96093e2539f22749f41f1dd695

  Log:
    [solaris] add missing macros for fpclassify() when it's found

  Modified files:
    lib/groonga_in.h

  Modified: lib/groonga_in.h (+7 -7)
===================================================================
--- lib/groonga_in.h    2012-03-04 17:13:26 +0900 (cdc83b0)
+++ lib/groonga_in.h    2012-03-04 17:48:40 +0900 (6a8fa2b)
@@ -199,18 +199,18 @@ typedef int grn_sock;
 # define grn_sock_close close
 # define CALLBACK
 
-# if (defined(__sun) && defined(__SVR4)) /* SUN */
-#  ifndef HAVE_FPCLASSIFY
+# ifdef HAVE_FPCLASSIFY
+#  define CASE_FP_NAN case FP_NAN:
+#  define CASE_FP_INFINITE case FP_INFINITE:
+# else
+#  if (defined(__sun) && defined(__SVR4)) /* 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:
-#  endif /* HAVE_FPCLASSIFY */
-# else  /* SUN */
-#  define CASE_FP_NAN case FP_NAN:
-#  define CASE_FP_INFINITE case FP_INFINITE:
-# endif /* SUN */
+#  endif /* SUN */
+# endif /* HAVE_FPCLASSIFY */
 
 #endif /* WIN32 */
 




Groonga-commit メーリングリストの案内
アーカイブの一覧に戻る