null+****@clear*****
null+****@clear*****
2012年 3月 4日 (日) 16:53:36 JST
Kouhei Sutou 2012-03-04 16:53:36 +0900 (Sun, 04 Mar 2012)
New Revision: 1779e6a722e35885819c54d3f00a742d2711e145
Log:
[windows] use found fpclassify() when it's found
Modified files:
lib/groonga_in.h
Modified: lib/groonga_in.h (+7 -3)
===================================================================
--- lib/groonga_in.h 2012-03-04 16:51:50 +0900 (08eceee)
+++ lib/groonga_in.h 2012-03-04 16:53:36 +0900 (c50f150)
@@ -152,11 +152,15 @@
#undef MSG_WAITALL
#define MSG_WAITALL 0 /* before Vista, not supported... */
-#define fpclassify _fpclass
-#define CASE_FP_NAN case _FPCLASS_SNAN: case _FPCLASS_QNAN:
-#define CASE_FP_INFINITE case _FPCLASS_NINF: case _FPCLASS_PINF:
#define SHUT_RDWR SD_BOTH
+#ifndef HAVE_FPCLASSIFY
+# define HAVE_FPCLASSIFY 1
+# define fpclassify _fpclass
+# define CASE_FP_NAN case _FPCLASS_SNAN: case _FPCLASS_QNAN:
+# define CASE_FP_INFINITE case _FPCLASS_NINF: case _FPCLASS_PINF:
+#endif /* HAVE_FPCLASSIFY */
+
typedef SOCKET grn_sock;
#define grn_sock_close closesocket