Skip to content

Commit ed2cc6d

Browse files
drfloobcopybara-github
authored andcommitted
[tracing] Fix ERROR logging on Windows (grpc#37064)
See compilation errors for grpc@67334ab Windows headers do `#define ERROR 0`, which breaks abseil logging. Closes grpc#37064 COPYBARA_INTEGRATE_REVIEW=grpc#37064 from drfloob:fix-win-ERROR-tracing 8216d18 PiperOrigin-RevId: 647355362
1 parent fd32178 commit ed2cc6d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/lib/debug/trace_impl.h

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525

2626
#include <grpc/support/port_platform.h>
2727

28+
#ifdef _WIN32
29+
#undef ERROR
30+
#endif
31+
2832
void grpc_tracer_init();
2933
void grpc_tracer_shutdown(void);
3034

0 commit comments

Comments
 (0)