Navigation Menu

Skip to content

Commit

Permalink
Need MIN/MAX macros on SunOS too
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedi committed Feb 26, 2014
1 parent f5065cd commit b4f2ee6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/geo.h
Expand Up @@ -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))
Expand All @@ -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
Expand Down

0 comments on commit b4f2ee6

Please sign in to comment.