kazuho / picojson

a header-file-only, JSON parser serializer in C++
BSD 2-Clause "Simplified" License
1.12k stars 222 forks source link

fix compiler warning on __STDC_FORMAT_MACROS redef #127

Open NikolausDemmel opened 4 years ago

NikolausDemmel commented 4 years ago

Fixes #91

Without this, if I include 2 libraries that define this macro, I get warnings like

warning: '__STDC_FORMAT_MACROS' macro redefined [-Wmacro-redefined]

This is on macos 10.15 with AppleClang 11.