Fix compilation of time.h when localtime_t is a macro (#843)

This commit is contained in:
Victor Zverovich 2018-08-28 07:36:48 -07:00
parent 95a718992c
commit 802ff8866e

View File

@ -13,8 +13,12 @@
FMT_BEGIN_NAMESPACE
// Prevents expansion of a preceding token as a function-style macro.
// Usage: f FMT_NOMACRO()
#define FMT_NOMACRO
namespace internal{
inline null<> localtime_r(...) { return null<>(); }
inline null<> localtime_r FMT_NOMACRO(...) { return null<>(); }
inline null<> localtime_s(...) { return null<>(); }
inline null<> gmtime_r(...) { return null<>(); }
inline null<> gmtime_s(...) { return null<>(); }