summaryrefslogtreecommitdiff
path: root/upb/msg.c
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2019-03-06 12:17:34 -0800
committerGitHub <noreply@github.com>2019-03-06 12:17:34 -0800
commited9faae0993704b033c594b072d65e1bf19207fa (patch)
treedf2777687abddf1335427d06942ba3436edf8c0b /upb/msg.c
parent51f30e064b8e88af8e7d429c5a54c25f28c68b02 (diff)
parent71ec01e34b03557cfed9df5f417791a189e7fca6 (diff)
Merge pull request #141 from haberman/defcleanup
Major refactoring/cleanup of upb
Diffstat (limited to 'upb/msg.c')
-rw-r--r--upb/msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/upb/msg.c b/upb/msg.c
index c6f0c17..b46d41c 100644
--- a/upb/msg.c
+++ b/upb/msg.c
@@ -1,4 +1,6 @@
+#include <string.h>
+#include "upb/table.int.h"
#include "upb/msg.h"
#include "upb/structs.int.h"
@@ -15,8 +17,6 @@ bool upb_fieldtype_mapkeyok(upb_fieldtype_t type) {
/** upb_msgval ****************************************************************/
-#define upb_alignof(t) offsetof(struct { char c; t x; }, x)
-
/* These functions will generate real memcpy() calls on ARM sadly, because
* the compiler assumes they might not be aligned. */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback