Skip to content

Commit 4a7be16

Browse files
SupSuperhorenmar
authored andcommitted
Fix compilation on Xbox platforms
Xbox does not support getenv
1 parent 32d9ae2 commit 4a7be16

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/catch2/internal/catch_compiler_capabilities.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@
156156

157157
////////////////////////////////////////////////////////////////////////////////
158158
// Assume that some platforms do not support getenv.
159-
#if defined(CATCH_PLATFORM_WINDOWS_UWP) || defined(CATCH_PLATFORM_PLAYSTATION)
159+
#if defined( CATCH_PLATFORM_WINDOWS_UWP ) || \
160+
defined( CATCH_PLATFORM_PLAYSTATION ) || \
161+
defined( _GAMING_XBOX )
160162
# define CATCH_INTERNAL_CONFIG_NO_GETENV
161163
#else
162164
# define CATCH_INTERNAL_CONFIG_GETENV

0 commit comments

Comments
 (0)