From cf35baa1ad70f0dca734f93bcc2b54d8d059bcdd Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Wed, 27 Mar 2019 15:32:05 -0700 Subject: 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. --- upb/upb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'upb/upb.c') 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 #include #include @@ -6,7 +8,8 @@ #include #include #include -#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 -- cgit v1.2.3