diff options
-rw-r--r-- | src/gd_intern.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gd_intern.h b/src/gd_intern.h new file mode 100644 index 0000000..27f3d10 --- /dev/null +++ b/src/gd_intern.h @@ -0,0 +1,13 @@ +#ifndef GD_INTERN_H +#define GD_INTERN_H +#ifndef MIN +#define MIN(a,b) ((a)<(b)?(a):(b)) +#endif +#define MIN3(a,b,c) ((a)<(b)?(MIN(a,c)):(MIN(b,c))) +#ifndef MAX +#define MAX(a,b) ((a)<(b)?(b):(a)) +#endif +#define MAX3(a,b,c) ((a)<(b)?(MAX(b,c)):(MAX(a,c))) + +#endif + |