diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2019-03-27 15:32:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-27 15:32:05 -0700 |
commit | cf35baa1ad70f0dca734f93bcc2b54d8d059bcdd (patch) | |
tree | 3c9881fcceaba1dbb5f04fe01ddc5f2dc5c647d1 /upb/table.int.h | |
parent | 928ef7f2c02f18d9945dd750884dffbdebef1b98 (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/table.int.h')
-rw-r--r-- | upb/table.int.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/upb/table.int.h b/upb/table.int.h index 2b86390..762d449 100644 --- a/upb/table.int.h +++ b/upb/table.int.h @@ -24,6 +24,8 @@ #include <string.h> #include "upb/upb.h" +#include "upb/port_def.inc" + #ifdef __cplusplus extern "C" { #endif @@ -500,4 +502,6 @@ bool upb_inttable_iter_isequal(const upb_inttable_iter *i1, } /* extern "C" */ #endif +#include "upb/port_undef.inc" + #endif /* UPB_TABLE_H_ */ |