Closed barracuda156 closed 1 year ago
Thanks for reporting. Can you please confirm this fixes the issue and do you know whether __STDC_FORMAT_MACROS
should be guarded by a __GNUC__
or __clang__
macro condition?
At least on Apple it applies to GCC and Clang both (and is in fact needed on some configurations with either). I think I never seen it being compiler-specific. Often it is used like this:
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
This should be fixed with 666c26d. Please let me know if that fixes the issue for you.
@LukasBanana Thank you!
GCC suggests including
cinttypes
, that will work for GCC, but will fail with some old Apple clangs. What works with both is defining__STDC_FORMAT_MACROS
prior to including the header.