##// END OF EJS Templates
cext: define MIN macro only if it is not yet defined...
André Sintzoff -
r35793:440e8fce default
parent child Browse files
Show More
@@ -27,7 +27,9 b' typedef struct {'
27 extern PyTypeObject dirstateTupleType;
27 extern PyTypeObject dirstateTupleType;
28 #define dirstate_tuple_check(op) (Py_TYPE(op) == &dirstateTupleType)
28 #define dirstate_tuple_check(op) (Py_TYPE(op) == &dirstateTupleType)
29
29
30 #ifndef MIN
30 #define MIN(a, b) (((a) < (b)) ? (a) : (b))
31 #define MIN(a, b) (((a) < (b)) ? (a) : (b))
32 #endif
31 /* VC9 doesn't include bool and lacks stdbool.h based on my searching */
33 /* VC9 doesn't include bool and lacks stdbool.h based on my searching */
32 #if defined(_MSC_VER) || __STDC_VERSION__ < 199901L
34 #if defined(_MSC_VER) || __STDC_VERSION__ < 199901L
33 #define true 1
35 #define true 1
General Comments 0
You need to be logged in to leave comments. Login now