Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable unavailable functionality on xbox #887

Merged
merged 2 commits into from
Jul 26, 2023
Merged

disable unavailable functionality on xbox #887

merged 2 commits into from
Jul 26, 2023

Conversation

maxbachmann
Copy link
Contributor

This disables functionality that is not available on the xbox similar to ALSOFT_UWP.

Comment on lines +48 to +52
#ifdef _GAMING_XBOX
const char *str{::getenv(envname)};
#else
const char *str{std::getenv(envname)};
#endif
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For unknown reason std::getenv is not available for non desktop apps:

#ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
using _CSTD getenv;
using _CSTD system;
#endif // _CRT_USE_WINAPI_FAMILY_DESKTOP_APP

however getenv is available

@kcat kcat merged commit 34d07fd into kcat:master Jul 26, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants