mercurial/cext/util.h
changeset 35775 440e8fce29e7
parent 34635 3455e2e2ce9b
child 36618 9a639a33ad1f
equal deleted inserted replaced
35774:854a7315603e 35775:440e8fce29e7
    25 /* clang-format on */
    25 /* clang-format on */
    26 
    26 
    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
    34 #define false 0
    36 #define false 0
    35 typedef unsigned char bool;
    37 typedef unsigned char bool;