summaryrefslogtreecommitdiff
path: root/upb
diff options
context:
space:
mode:
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