Skip to content

Commit

Permalink
Try to fix build errors with macro redefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTF committed Nov 15, 2024
1 parent 1affa8a commit 9937811
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/util/ConfigManager/ConfigShorthandVisitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
#pragma once

// ANTLR runtime uses this as a variable name.
#ifdef EOF
#undef EOF
#endif
#include <antlr4-runtime.h>

#include "util/ConfigManager/generated/ConfigShorthandParser.h"
Expand Down
5 changes: 5 additions & 0 deletions src/util/Log.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
#define LOGLEVEL INFO
#endif

// Abseil does also define its own LOG macro, so we need to undefine it here.
#ifdef LOG
#undef LOG
#endif

#define LOG(x) \
if (x > LOGLEVEL) \
; \
Expand Down

0 comments on commit 9937811

Please sign in to comment.