From 0b2bd0fc739563cd1ad7071849fdbdde349c97a4 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 28 Mar 2014 13:37:14 +0300 Subject: [PATCH] eol_size() --- include/c11log/details/os.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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