diff --git a/include/c11log/details/os.h b/include/c11log/details/os.h index 8710ae47..ab91284c 100644 --- a/include/c11log/details/os.h +++ b/include/c11log/details/os.h @@ -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