[Groonga-commit] groonga/groonga at aaaf90c [master] windows: add missing MIN/MAX definitions on MinGW

Back to archive index

HAYASHI Kentaro null+****@clear*****
Fri Dec 20 17:48:34 JST 2013


HAYASHI Kentaro	2013-12-20 17:48:34 +0900 (Fri, 20 Dec 2013)

  New Revision: aaaf90c9fb28665353e4fcd26694e1dea71d1d23
  https://github.com/groonga/groonga/commit/aaaf90c9fb28665353e4fcd26694e1dea71d1d23

  Message:
    windows: add missing MIN/MAX definitions on MinGW

  Modified files:
    lib/geo.h

  Modified: lib/geo.h (+7 -0)
===================================================================
--- lib/geo.h    2013-12-20 16:05:33 +0900 (a5aedf8)
+++ lib/geo.h    2013-12-20 17:48:34 +0900 (6ad4b36)
@@ -26,6 +26,13 @@
 
 #ifdef WIN32
 #define _USE_MATH_DEFINES
+#  if !defined MAX
+#  define MAX(a, b) ((a) > (b) ? (a) : (b))
+#  endif
+
+#  if !defined MIN
+#  define MIN(a, b) ((a) < (b) ? (a) : (b))
+#  endif
 #endif /* WIN32 */
 #include <math.h>
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index