t/sdl_test: Fix macro collision on Windows

This commit is contained in:
Ryan Pavlik 2023-05-16 16:13:03 -05:00 committed by Jakob Bornecrantz
parent 8603e5d63e
commit 173b36c3a2
2 changed files with 7 additions and 7 deletions

View file

@ -214,14 +214,14 @@ from_comp(struct xrt_compositor *xc)
* @relates sdl_program
* @ingroup sdl_test
*/
#define SP_TRACE(sp, ...) U_LOG_IFL_T(sp->log_level, __VA_ARGS__);
#define ST_TRACE(sp, ...) U_LOG_IFL_T(sp->log_level, __VA_ARGS__);
/*!
* Debug level logging.
*
* @relates sdl_program
*/
#define SP_DEBUG(sp, ...) U_LOG_IFL_D(sp->log_level, __VA_ARGS__);
#define ST_DEBUG(sp, ...) U_LOG_IFL_D(sp->log_level, __VA_ARGS__);
/*!
* Info level logging.
@ -229,7 +229,7 @@ from_comp(struct xrt_compositor *xc)
* @relates sdl_program
* @ingroup sdl_test
*/
#define SP_INFO(sp, ...) U_LOG_IFL_I(sp->log_level, __VA_ARGS__);
#define ST_INFO(sp, ...) U_LOG_IFL_I(sp->log_level, __VA_ARGS__);
/*!
* Warn level logging.
@ -237,7 +237,7 @@ from_comp(struct xrt_compositor *xc)
* @relates sdl_program
* @ingroup sdl_test
*/
#define SP_WARN(sp, ...) U_LOG_IFL_W(sp->log_level, __VA_ARGS__);
#define ST_WARN(sp, ...) U_LOG_IFL_W(sp->log_level, __VA_ARGS__);
/*!
* Error level logging.
@ -245,7 +245,7 @@ from_comp(struct xrt_compositor *xc)
* @relates sdl_program
* @ingroup sdl_test
*/
#define SP_ERROR(sp, ...) U_LOG_IFL_E(sp->log_level, __VA_ARGS__);
#define ST_ERROR(sp, ...) U_LOG_IFL_E(sp->log_level, __VA_ARGS__);
/*!
* Check for OpenGL errors, context needs to be current.

View file

@ -45,7 +45,7 @@ vk_format_to_gl(int64_t format)
static void
post_init_setup(struct sdl_swapchain *ssc, struct sdl_program *sp, const struct xrt_swapchain_create_info *info)
{
SP_DEBUG(sp, "CREATE");
ST_DEBUG(sp, "CREATE");
// Setup fields
ssc->sp = sp;
@ -114,7 +114,7 @@ really_destroy(struct comp_swapchain *sc)
struct sdl_swapchain *ssc = (struct sdl_swapchain *)sc;
struct sdl_program *sp = ssc->sp;
SP_DEBUG(sp, "DESTROY");
ST_DEBUG(sp, "DESTROY");
sdl_make_current(sp);