summaryrefslogtreecommitdiff
path: root/upb
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2019-01-23 17:16:31 -0800
committerJoshua Haberman <jhaberman@gmail.com>2019-01-23 17:16:31 -0800
commit9bc7973e3893a72a62e75b8c7075d692c8794ec1 (patch)
treed4cd596ef683c49416fc5505ad0ba56c31e0a4ca /upb
parent7f9f7222bf5ab3ad3720b1afd55370b0e473109f (diff)
Fixes for Google import.
Diffstat (limited to 'upb')
-rw-r--r--upb/handlers-inl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/upb/handlers-inl.h b/upb/handlers-inl.h
index 5677a4a..40a0047 100644
--- a/upb/handlers-inl.h
+++ b/upb/handlers-inl.h
@@ -7,6 +7,8 @@
#define UPB_HANDLERS_INL_H_
#include <limits.h>
+#include <stddef.h>
+#include "upb/handlers.h"
#ifdef __cplusplus
@@ -162,8 +164,8 @@ struct FuncInfo {
* These functions are not bound to a handler data so have no data or cleanup
* handler. */
struct UnboundFunc {
- CleanupFunc *GetCleanup() { return NULL; }
- void *GetData() { return NULL; }
+ CleanupFunc *GetCleanup() { return nullptr; }
+ void *GetData() { return nullptr; }
};
template <class R, class P1, R F(P1), class I>
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback