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/pb/encoder.c | 1 + 1 file changed, 1 insertion(+) (limited to 'upb/pb/encoder.c') diff --git a/upb/pb/encoder.c b/upb/pb/encoder.c index 5f74010..e7092a8 100644 --- a/upb/pb/encoder.c +++ b/upb/pb/encoder.c @@ -57,6 +57,7 @@ #include "upb/pb/encoder.h" #include "upb/pb/varint.int.h" +#include "upb/port_def.inc" /* The output buffer is divided into segments; a segment is a string of data * that is "ready to go" -- it does not need any varint lengths inserted into -- cgit v1.2.3