Skip to content

Commit

Permalink
Remove reflection dependency for UPB compare utility.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 506366630
  • Loading branch information
protobuf-github-bot authored and copybara-github committed Feb 1, 2023
1 parent 008a9af commit 84a3fd2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion upb/util/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ cc_library(
deps = [
"//:eps_copy_input_stream",
"//:port",
"//:reflection",
"//:upb",
"//:wire_reader",
"//:wire_types",
],
Expand Down
4 changes: 3 additions & 1 deletion upb/util/compare.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@

#include "upb/util/compare.h"

#include <stdlib.h>

#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"

Expand Down
2 changes: 1 addition & 1 deletion upb/util/compare.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#ifndef UPB_UTIL_COMPARE_H_
#define UPB_UTIL_COMPARE_H_

#include "upb/reflection/def.h"
#include <stddef.h>

#ifdef __cplusplus
extern "C" {
Expand Down

0 comments on commit 84a3fd2

Please sign in to comment.