Skip to content

Commit

Permalink
Fix potential -Wmacro-redefined warning in TestInetCommonOptions.cpp (p…
Browse files Browse the repository at this point in the history
…roject-chip#30100)

Add a guard around force defining __STDC_FORMAT_MACROS, which may be
defined centrally.
  • Loading branch information
mspang authored and shripad621git committed Oct 31, 2023
1 parent d6ce9d5 commit 9fee1ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/inet/tests/TestInetCommonOptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 9fee1ae

Please sign in to comment.