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. --- tests/pb/test_varint.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/pb/test_varint.c') diff --git a/tests/pb/test_varint.c b/tests/pb/test_varint.c index 7b2fe41..ebee282 100644 --- a/tests/pb/test_varint.c +++ b/tests/pb/test_varint.c @@ -3,6 +3,8 @@ #include "upb/pb/varint.int.h" #include "tests/upb_test.h" +#include "upb/port_def.inc" + /* Test that we can round-trip from int->varint->int. */ static void test_varint_for_num(upb_decoderet (*decoder)(const char*), uint64_t num) { -- cgit v1.2.3