summaryrefslogtreecommitdiff
path: root/upb/legacy_msg_reflection.h
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/legacy_msg_reflection.h
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/legacy_msg_reflection.h')
-rw-r--r--upb/legacy_msg_reflection.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/upb/legacy_msg_reflection.h b/upb/legacy_msg_reflection.h
index 66d3fba..32a621b 100644
--- a/upb/legacy_msg_reflection.h
+++ b/upb/legacy_msg_reflection.h
@@ -5,6 +5,8 @@
#include "upb/upb.h"
#include "upb/msg.h"
+#include "upb/port_def.inc"
+
struct upb_map;
typedef struct upb_map upb_map;
@@ -183,4 +185,6 @@ upb_msgval upb_mapiter_value(const upb_mapiter *i);
void upb_mapiter_setdone(upb_mapiter *i);
bool upb_mapiter_isequal(const upb_mapiter *i1, const upb_mapiter *i2);
-#endif // UPB_LEGACY_MSG_REFLECTION_H_
+#include "upb/port_undef.inc"
+
+#endif /* UPB_LEGACY_MSG_REFLECTION_H_ */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback