summaryrefslogtreecommitdiff
path: root/src/upb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/upb.h')
-rw-r--r--src/upb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/upb.h b/src/upb.h
index 64f2c54..685a292 100644
--- a/src/upb.h
+++ b/src/upb.h
@@ -36,6 +36,7 @@ extern "C" {
#define UPB_INDEX(base, i, m) (void*)((char*)(base) + ((i)*(m)))
INLINE uint32_t max(uint32_t a, uint32_t b) { return a > b ? a : b; }
+INLINE uint32_t min(uint32_t a, uint32_t b) { return a < b ? a : b; }
/* Value type as defined in a .proto file. The values of this are defined by
* google_protobuf_FieldDescriptorProto_Type (from descriptor.proto).
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback