mirror of https://github.com/gabime/spdlog.git
Support newlib C library configurations without tm_gmtoff field
Newlib C library (https://sourceware.org/newlib/) has a configuration option to add tm_gmtoff field to the tm structure. Not all the platforms supported by newlib enable this option, and spdlog doesn't compile on such platforms due to missing tm_gmtoff field. Fix this by checking for `__NEWLIB__` and `__TM_GMTOFF` and enabling calculate_gmt_offset.pull/2600/head
parent
287a00d364
commit
8a3a315eab
Loading…
Reference in New Issue