Skip to content

Commit 6ed6d67

Browse files
committed
Define __STDC_FORMAT_MACROS when it hasn't been defined to avoid duplicate define error.
Signed-off-by: Tao He <[email protected]>
1 parent 7fbb08c commit 6ed6d67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Release/src/json/json_serialization.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
#include <stdio.h>
1717

1818
#ifndef _WIN32
19+
#ifndef __STDC_FORMAT_MACROS
1920
#define __STDC_FORMAT_MACROS
21+
#endif
2022
#include <inttypes.h>
2123
#endif
2224

0 commit comments

Comments
 (0)