projects
/
cacao.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* src/vm/global.h: Added definition of MIN macro with guard.
[cacao.git]
/
src
/
vm
/
global.h
diff --git
a/src/vm/global.h
b/src/vm/global.h
index 33b7fb1e7ecd32cae73c00b1d1155bc902e12e16..420352c6a1c0636e16b8771cad188b4c634a38d4 100644
(file)
--- a/
src/vm/global.h
+++ b/
src/vm/global.h
@@
-89,6
+89,12
@@
typedef union {
#define STR(a) #a
+/* There are multiple definitions of MIN out there, but we cannot be sure. */
+
+#ifndef MIN
+# define MIN(a,b) (((a) < (b)) ? (a) : (b))
+#endif
+
/* forward typedefs ***********************************************************/