summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-05-11 13:46:22 (GMT)
committer John Mark Bell <jmb@netsurf-browser.org>2009-05-11 13:46:22 (GMT)
commitd68c4c5f75a164f4dc93154b7d05e99e87ba599c (patch)
treedd89778b3aa8accf55c404a4033e1fc4ca056489
parent9d36bd3bbc553fcbabe7c69811e996876f539f43 (diff)
downloadttf2f-d68c4c5f75a164f4dc93154b7d05e99e87ba599c.tar.gz
ttf2f-d68c4c5f75a164f4dc93154b7d05e99e87ba599c.tar.bz2
Define min()
svn path=/trunk/tools/ttf2f/; revision=7465
-rw-r--r--src/utils.h4
1 files changed, 4 insertions, 0 deletions
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