diff options
author | Max Bachmann <[email protected]> | 2023-07-26 21:57:53 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2023-07-26 19:57:53 +0000 |
commit | 34d07fde84ad64342ae6624334957143319615ab (patch) | |
tree | 73f003626c538b2682b885560de1a42e9f576311 /common/strutils.cpp | |
parent | 8b3a9b527d87009f86ed0b4eb6c33a9e8dfc069b (diff) |
disable unavailable functionality on xbox (#887)
* disable unavailable functionality on xbox
* use not std version of getenv on xbox
Diffstat (limited to 'common/strutils.cpp')
-rw-r--r-- | common/strutils.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/strutils.cpp b/common/strutils.cpp index b221b6ec..355cd030 100644 --- a/common/strutils.cpp +++ b/common/strutils.cpp @@ -45,7 +45,11 @@ namespace al { std::optional<std::string> getenv(const char *envname) { +#ifdef _GAMING_XBOX + const char *str{::getenv(envname)}; +#else const char *str{std::getenv(envname)}; +#endif if(str && str[0] != '\0') return str; return std::nullopt; |