mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 10:31:34 +08:00
so::getenv - Always empty string under windows uwp since it's not supported
This commit is contained in:
parent
9d3591dcd5
commit
70d3c2cd3e
@ -538,6 +538,9 @@ SPDLOG_INLINE filename_t dir_name(filename_t path)
|
|||||||
|
|
||||||
std::string SPDLOG_INLINE getenv(const char *field)
|
std::string SPDLOG_INLINE getenv(const char *field)
|
||||||
{
|
{
|
||||||
|
#if defined(__cplusplus_winrt)
|
||||||
|
SPDLOG_THROW(spdlog_ex("getenv is not supported under uwp"));
|
||||||
|
#endif
|
||||||
#if defined(_MSC_VER) && !defined(__cplusplus_winrt)
|
#if defined(_MSC_VER) && !defined(__cplusplus_winrt)
|
||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
char buf[128];
|
char buf[128];
|
||||||
|
Loading…
Reference in New Issue
Block a user