Fix compilation on Xbox platforms

Xbox does not support getenv
This commit is contained in:
SupSuper 2023-12-01 10:34:02 +00:00 committed by Martin Hořeňovský
parent 32d9ae24bc
commit 4a7be16c8c

View File

@ -156,7 +156,9 @@
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// Assume that some platforms do not support getenv. // Assume that some platforms do not support getenv.
#if defined(CATCH_PLATFORM_WINDOWS_UWP) || defined(CATCH_PLATFORM_PLAYSTATION) #if defined( CATCH_PLATFORM_WINDOWS_UWP ) || \
defined( CATCH_PLATFORM_PLAYSTATION ) || \
defined( _GAMING_XBOX )
# define CATCH_INTERNAL_CONFIG_NO_GETENV # define CATCH_INTERNAL_CONFIG_NO_GETENV
#else #else
# define CATCH_INTERNAL_CONFIG_GETENV # define CATCH_INTERNAL_CONFIG_GETENV