[Groonga-commit] groonga/groonga [master] [windows] add missing macros for fpclassify()

Back to archive index

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


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

  New Revision: 473c163c1cd35eb5d74516fc3a860b7923f0b156

  Log:
    [windows] add missing macros for fpclassify()

  Modified files:
    lib/groonga_in.h

  Modified: lib/groonga_in.h (+4 -1)
===================================================================
--- lib/groonga_in.h    2012-03-04 16:53:36 +0900 (c50f150)
+++ lib/groonga_in.h    2012-03-04 16:57:25 +0900 (cdc83b0)
@@ -154,7 +154,10 @@
 #define MSG_WAITALL 0 /* before Vista, not supported... */
 #define SHUT_RDWR SD_BOTH
 
-#ifndef HAVE_FPCLASSIFY
+#ifdef HAVE_FPCLASSIFY
+# define CASE_FP_NAN case FP_NAN:
+# define CASE_FP_INFINITE case FP_INFINITE:
+#else
 # define HAVE_FPCLASSIFY 1
 # define fpclassify _fpclass
 # define CASE_FP_NAN case _FPCLASS_SNAN: case _FPCLASS_QNAN:




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