mirror of
https://github.com/fmtlib/fmt.git
synced 2025-09-14 07:09:26 -04:00
Fix compilation of time.h when localtime_t is a macro (#843)
This commit is contained in:
parent
95a718992c
commit
802ff8866e
@ -13,8 +13,12 @@
|
|||||||
|
|
||||||
FMT_BEGIN_NAMESPACE
|
FMT_BEGIN_NAMESPACE
|
||||||
|
|
||||||
|
// Prevents expansion of a preceding token as a function-style macro.
|
||||||
|
// Usage: f FMT_NOMACRO()
|
||||||
|
#define FMT_NOMACRO
|
||||||
|
|
||||||
namespace internal{
|
namespace internal{
|
||||||
inline null<> localtime_r(...) { return null<>(); }
|
inline null<> localtime_r FMT_NOMACRO(...) { return null<>(); }
|
||||||
inline null<> localtime_s(...) { return null<>(); }
|
inline null<> localtime_s(...) { return null<>(); }
|
||||||
inline null<> gmtime_r(...) { return null<>(); }
|
inline null<> gmtime_r(...) { return null<>(); }
|
||||||
inline null<> gmtime_s(...) { return null<>(); }
|
inline null<> gmtime_s(...) { return null<>(); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user