Skip to content

Commit

Permalink
Fix potential -Wmacro-redefined warning in TestInetCommonOptions.cpp
Browse files Browse the repository at this point in the history
Add a guard around force defining __STDC_FORMAT_MACROS, which may be
defined centrally.
  • Loading branch information
mspang committed Oct 30, 2023
1 parent a16d6e9 commit 1e5d2d6
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 1e5d2d6

Please sign in to comment.