diff --git a/src/sentry_core.c b/src/sentry_core.c index 6fdc4116d..5343bc5bb 100644 --- a/src/sentry_core.c +++ b/src/sentry_core.c @@ -100,7 +100,8 @@ generate_propagation_context(sentry_value_t propagation_context) sentry_value_get_by_key(propagation_context, "trace")); } -#if defined(SENTRY_PLATFORM_NX) || defined(SENTRY_PLATFORM_PS) +#if defined(SENTRY_PLATFORM_NX) || defined(SENTRY_PLATFORM_PS) \ + || defined(SENTRY_PLATFORM_XBOX) int sentry__native_init(sentry_options_t *options) #else diff --git a/src/sentry_core.h b/src/sentry_core.h index ad3026e9b..454eae3c9 100644 --- a/src/sentry_core.h +++ b/src/sentry_core.h @@ -149,7 +149,8 @@ bool sentry__should_send_transaction( sentry_value_t tx_ctx, sentry_sampling_context_t *sampling_ctx); #endif -#if defined(SENTRY_PLATFORM_NX) || defined(SENTRY_PLATFORM_PS) +#if defined(SENTRY_PLATFORM_NX) || defined(SENTRY_PLATFORM_PS) \ + || defined(SENTRY_PLATFORM_XBOX) int sentry__native_init(sentry_options_t *options); #endif