min()/max() macros conflict with ones defined by Windows (or at least MinGW)
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Wed, 1 Jun 2005 22:56:20 +0000 (22:56 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Wed, 1 Jun 2005 22:56:20 +0000 (22:56 +0000)
headers; but MIN()/MAX() conflict with glib. Let's keep the lower-case ones,
and assume that any provided by the system have the obvious semantics.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@5900 cda61777-01e9-0310-a592-d414129be87e

puzzles.h

index 8be9009..fbef531 100644 (file)
--- a/puzzles.h
+++ b/puzzles.h
 #define STR(x) STR_INT(x)
 
 /* NB not perfect because they evaluate arguments multiple times. */
+#ifndef max
 #define max(x,y) ( (x)>(y) ? (x) : (y) )
+#endif /* max */
+#ifndef min
 #define min(x,y) ( (x)<(y) ? (x) : (y) )
+#endif /* min */
 
 enum {
     LEFT_BUTTON = 0x0200,