eol_size()

This commit is contained in:
gabime 2014-03-28 13:37:14 +03:00
parent 94513be061
commit 0b2bd0fc73

View File

@ -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