From b0ef7f0b6778addc91ce04ca1d6e835d44387c83 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 2 Jul 2009 20:19:06 -0700 Subject: More fixes, completions, still doesn't quite work. --- upb.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'upb.h') diff --git a/upb.h b/upb.h index 563314c..ebf73c0 100644 --- a/upb.h +++ b/upb.h @@ -34,6 +34,8 @@ extern "C" { /* The maximum number of fields that any one .proto type can have. */ #define UPB_MAX_FIELDS (1<<16) +INLINE uint32_t max(uint32_t a, uint32_t b) { return a > b ? a : b; } + /* Represents a string or bytes. */ struct upb_string { /* We expect the data to be 8-bit clean (uint8_t), but char* is such an -- cgit v1.2.3