diff options
| author | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2005-06-01 22:56:20 +0000 |
|---|---|---|
| committer | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2005-06-01 22:56:20 +0000 |
| commit | 09c396b8a863340de1f54536eb193eb2a9b28cb5 (patch) | |
| tree | 0654cb200805c73c86bce60e2626989293586d76 | |
| parent | 55a3d377b156ede425814983fa9204af90ce3df2 (diff) | |
| download | puzzles-09c396b8a863340de1f54536eb193eb2a9b28cb5.zip puzzles-09c396b8a863340de1f54536eb193eb2a9b28cb5.tar.gz puzzles-09c396b8a863340de1f54536eb193eb2a9b28cb5.tar.bz2 puzzles-09c396b8a863340de1f54536eb193eb2a9b28cb5.tar.xz | |
min()/max() macros conflict with ones defined by Windows (or at least MinGW)
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.
[originally from svn r5900]
| -rw-r--r-- | puzzles.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -22,8 +22,12 @@ #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, |