diff options
Diffstat (limited to 'sim/common/sim-basics.h')
-rw-r--r-- | sim/common/sim-basics.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sim/common/sim-basics.h b/sim/common/sim-basics.h index e0cb6d1..16c7eb5 100644 --- a/sim/common/sim-basics.h +++ b/sim/common/sim-basics.h @@ -48,6 +48,13 @@ extern int asprintf (char **result, const char *format, ...); #endif +#ifndef min +#define min(a, b) ((a) < (b) ? (a) : (b)) +#endif +#ifndef max +#define max(a, b) ((a) > (b) ? (a) : (b)) +#endif + /* Some versions of GCC include an attribute operator, define it */ |