summaryrefslogtreecommitdiff
path: root/upb
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2019-02-17 20:36:26 -0800
committerJosh Haberman <jhaberman@gmail.com>2019-02-17 20:36:26 -0800
commitad905b08f5f93b497311290fb4df4059ccd083eb (patch)
tree46a5b26cd685c9b4b64aef8423fcb901caeae94c /upb
parent5575a228c9e529d3d7656d777f876ca7062f4535 (diff)
Fixed amalgamation to properly include stdint.h first for UPB_SIZE().
Diffstat (limited to 'upb')
-rw-r--r--upb/port_def.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/upb/port_def.inc b/upb/port_def.inc
index 33ff78c..fe975a0 100644
--- a/upb/port_def.inc
+++ b/upb/port_def.inc
@@ -1,4 +1,8 @@
+#ifndef UINTPTR_MAX
+#error must include stdint.h first
+#endif
+
#if UINTPTR_MAX == 0xffffffff
#define UPB_SIZE(size32, size64) size32
#else
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback