From 84a3fd2d2d943c8ff37f09feadb1dd3f60f954ee Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Wed, 1 Feb 2023 11:02:53 -0800 Subject: [PATCH] Remove reflection dependency for UPB compare utility. PiperOrigin-RevId: 506366630 --- upb/util/BUILD | 2 +- upb/util/compare.c | 4 +++- upb/util/compare.h | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/upb/util/BUILD b/upb/util/BUILD index 2f930129e8..2643959038 100644 --- a/upb/util/BUILD +++ b/upb/util/BUILD @@ -113,7 +113,7 @@ cc_library( deps = [ "//:eps_copy_input_stream", "//:port", - "//:reflection", + "//:upb", "//:wire_reader", "//:wire_types", ], diff --git a/upb/util/compare.c b/upb/util/compare.c index 62e2052ec8..3fbc8f61bf 100644 --- a/upb/util/compare.c +++ b/upb/util/compare.c @@ -27,10 +27,12 @@ #include "upb/util/compare.h" +#include + +#include "upb/upb.h" #include "upb/wire/eps_copy_input_stream.h" #include "upb/wire/reader.h" #include "upb/wire/types.h" - // Must be last. #include "upb/port/def.inc" diff --git a/upb/util/compare.h b/upb/util/compare.h index d99a7e956b..82acd50361 100644 --- a/upb/util/compare.h +++ b/upb/util/compare.h @@ -28,7 +28,7 @@ #ifndef UPB_UTIL_COMPARE_H_ #define UPB_UTIL_COMPARE_H_ -#include "upb/reflection/def.h" +#include #ifdef __cplusplus extern "C" {