From 1e5d2d69422e27bad217596f21ca19715dfd8568 Mon Sep 17 00:00:00 2001 From: Michael Spang Date: Mon, 30 Oct 2023 15:14:47 -0400 Subject: [PATCH] Fix potential -Wmacro-redefined warning in TestInetCommonOptions.cpp 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"