From d7b2e39a8a14feca51bc87835c7dbbd951ab4aeb Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Tue, 14 May 2024 15:05:31 +0200 Subject: [PATCH] Fixed macro redifinition warning for Unity builds Signed-off-by: Alexander Borsuk --- test/gflags_declare_flags.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/gflags_declare_flags.cc b/test/gflags_declare_flags.cc index 3d952a8..4fd664f 100755 --- a/test/gflags_declare_flags.cc +++ b/test/gflags_declare_flags.cc @@ -1,3 +1,5 @@ +// The macro can already be defined when using Unity builds. +#undef GFLAGS_DLL_DECLARE_FLAG #define GFLAGS_DLL_DECLARE_FLAG #include