From d68c4c5f75a164f4dc93154b7d05e99e87ba599c Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 11 May 2009 13:46:22 +0000 Subject: Define min() svn path=/trunk/tools/ttf2f/; revision=7465 --- src/utils.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils.h b/src/utils.h index 6912426..cd499a1 100644 --- a/src/utils.h +++ b/src/utils.h @@ -15,6 +15,10 @@ #define max(a,b) (((a) > (b)) ? (a) : (b)) #endif +#ifndef min +#define min(a,b) (((a) > (b)) ? (b) : (a)) +#endif + #ifndef N_ELEMENTS #define N_ELEMENTS(x) (sizeof((x)) / sizeof((x)[0])) #endif -- cgit v1.2.3