diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2019-01-23 17:16:31 -0800 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2019-01-23 17:16:31 -0800 |
commit | 9bc7973e3893a72a62e75b8c7075d692c8794ec1 (patch) | |
tree | d4cd596ef683c49416fc5505ad0ba56c31e0a4ca /upb/handlers-inl.h | |
parent | 7f9f7222bf5ab3ad3720b1afd55370b0e473109f (diff) |
Fixes for Google import.
Diffstat (limited to 'upb/handlers-inl.h')
-rw-r--r-- | upb/handlers-inl.h | 6 |
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> |