mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
eol_size()
This commit is contained in:
parent
94513be061
commit
0b2bd0fc73
@ -55,6 +55,15 @@ constexpr inline const char* eol()
|
||||
return "\n";
|
||||
#endif
|
||||
}
|
||||
|
||||
constexpr inline unsigned short eol_size()
|
||||
{
|
||||
#ifdef _WIN32
|
||||
return 2;
|
||||
#else
|
||||
return 1;
|
||||
#endif
|
||||
}
|
||||
} //os
|
||||
} //details
|
||||
} //c11log
|
||||
|
Loading…
Reference in New Issue
Block a user