summaryrefslogtreecommitdiff
path: root/upb/upb.c
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2019-03-27 15:32:05 -0700
committerGitHub <noreply@github.com>2019-03-27 15:32:05 -0700
commitcf35baa1ad70f0dca734f93bcc2b54d8d059bcdd (patch)
tree3c9881fcceaba1dbb5f04fe01ddc5f2dc5c647d1 /upb/upb.c
parent928ef7f2c02f18d9945dd750884dffbdebef1b98 (diff)
Moved macros from upb.h to port_def.inc to avoid leaking them to users. (#160)
* Use port_def.inc to prevent macros from leaking to users. * Added helpful comments to port_def.inc/port_undef.inc.
Diffstat (limited to 'upb/upb.c')
-rw-r--r--upb/upb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/upb/upb.c b/upb/upb.c
index 0cf5b50..266ea7d 100644
--- a/upb/upb.c
+++ b/upb/upb.c
@@ -1,4 +1,6 @@
+#include "upb/upb.h"
+
#include <errno.h>
#include <stdarg.h>
#include <stddef.h>
@@ -6,7 +8,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "upb/upb.h"
+
+#include "upb/port_def.inc"
/* Guarantee null-termination and provide ellipsis truncation.
* It may be tempting to "optimize" this by initializing these final
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback