Skip to content

Commit

Permalink
[3rdparty] Avoid macro redefinition in picojson (#153)
Browse files Browse the repository at this point in the history
This PR adds a guard to avoid the macro redifinition of
`__STDC_FORMAT_MACROS` in 3rdparty picojson.
  • Loading branch information
MasterJH5574 authored Jan 14, 2025
1 parent 5703f39 commit c1b6492
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 3rdparty/picojson/picojson.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@

#ifndef PICOJSON_USE_INT64
#define PICOJSON_USE_INT64
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS 1
#endif
#endif

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

0 comments on commit c1b6492

Please sign in to comment.