Skip to content

Commit

Permalink
Fix compilation on Xbox platforms
Browse files Browse the repository at this point in the history
Xbox does not support getenv
  • Loading branch information
SupSuper authored and horenmar committed Dec 2, 2023
1 parent 32d9ae2 commit 4a7be16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/catch2/internal/catch_compiler_capabilities.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@

////////////////////////////////////////////////////////////////////////////////
// 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
#else
# define CATCH_INTERNAL_CONFIG_GETENV
Expand Down

0 comments on commit 4a7be16

Please sign in to comment.