[Groonga-commit] groonga/groonga at b4f2ee6 [master] Need MIN/MAX macros on SunOS too

Back to archive index

Sebastian Wiedenroth null+****@clear*****
Wed Feb 26 22:49:06 JST 2014


Sebastian Wiedenroth	2014-02-26 22:49:06 +0900 (Wed, 26 Feb 2014)

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

  Merged c1c0c16: Merge pull request #154 from wiedi/master

  Message:
    Need MIN/MAX macros on SunOS too

  Modified files:
    lib/geo.h

  Modified: lib/geo.h (+2 -2)
===================================================================
--- lib/geo.h    2014-02-25 11:55:11 +0900 (888fd06)
+++ lib/geo.h    2014-02-26 22:49:06 +0900 (b1e0406)
@@ -24,7 +24,7 @@
 #include "ii.h"
 #include "db.h"
 
-#ifdef WIN32
+#if defined(WIN32) || defined(__sun)
 # define _USE_MATH_DEFINES
 # ifndef MAX
 #  define MAX(a, b) ((a) > (b) ? (a) : (b))
@@ -33,7 +33,7 @@
 # ifndef MIN
 #  define MIN(a, b) ((a) < (b) ? (a) : (b))
 # endif
-#endif /* WIN32 */
+#endif /* WIN32 or __sun */
 #include <math.h>
 
 #ifdef __cplusplus
-------------- next part --------------
HTML����������������������������...
Download 



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