diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-02-20 13:57:54 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-02-20 13:57:54 (GMT) |
commit | 9044b51534262e6d407305edb91cee659c00a009 (patch) | |
tree | 00c2d53a67467420dba37de823985554ee97d50f /include | |
parent | ab4b12b84ab61c0dac28ed1794fbbc5169c27df9 (diff) |
Changed min() and max() to tng_min() and tng_max()
Diffstat (limited to 'include')
-rw-r--r-- | include/tng_io.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tng_io.h b/include/tng_io.h index fdf1bb4..4b91f7e 100644 --- a/include/tng_io.h +++ b/include/tng_io.h @@ -244,13 +244,13 @@ /** Inline function for finding the lowest of two values */ -#define min(a,b) \ +#define tng_min(a,b) \ ({ __typeof__ (a) _a = (a); \ __typeof__ (b) _b = (b); \ _a < _b ? _a : _b; }) /** Inline function for finding the highest of two values */ -#define max(a,b) \ +#define tng_max(a,b) \ ({ __typeof__ (a) _a = (a); \ __typeof__ (b) _b = (b); \ _a > _b ? _a : _b; }) |