Skip to content

Commit c1b6492

Browse files
authored
[3rdparty] Avoid macro redefinition in picojson (#153)
This PR adds a guard to avoid the macro redifinition of `__STDC_FORMAT_MACROS` in 3rdparty picojson.
1 parent 5703f39 commit c1b6492

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

3rdparty/picojson/picojson.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929

3030
#ifndef PICOJSON_USE_INT64
3131
#define PICOJSON_USE_INT64
32+
#ifndef __STDC_FORMAT_MACROS
3233
#define __STDC_FORMAT_MACROS 1
3334
#endif
35+
#endif
3436

3537
// If PICOJSON_USE_ORDERED_OBJECT is set, picojson uses object_with_ordered_keys, which maintains
3638
// the insertion order of keys, i.e. the order of keys in the json string.

0 commit comments

Comments
 (0)