From 1383466493f95038e650c45b269ec0a241ef8d53 Mon Sep 17 00:00:00 2001 From: Michael Spang Date: Mon, 30 Oct 2023 22:20:28 -0400 Subject: [PATCH] Fix potential -Wmacro-redefined warning in TestInetCommonOptions.cpp (#30100) Add a guard around force defining __STDC_FORMAT_MACROS, which may be defined centrally. --- src/inet/tests/TestInetCommonOptions.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/inet/tests/TestInetCommonOptions.cpp b/src/inet/tests/TestInetCommonOptions.cpp index b424f4b16577eb..727b6a107b28f1 100644 --- a/src/inet/tests/TestInetCommonOptions.cpp +++ b/src/inet/tests/TestInetCommonOptions.cpp @@ -26,7 +26,9 @@ #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS #endif +#ifndef __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS +#endif #include "TestInetCommonOptions.h"