The open source OpenXR runtime

xrt: add explicit imports for standard C libraries

Recent versions of SDL2 have removed cstd lib
includes in interface header which causes compile errors
on some source files that were implicitly using
them.

Signed-off-by: Shiloh Fen <shiloh@shilohfen.com>
Co-authored-by: Torge Matthies <openglfreak@googlemail.com>
Co-authored-by: Korcan Hussein <korcan.hussein@collabora.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2409>

+5 -1
+1
src/xrt/drivers/qwerty/qwerty_sdl.c
··· 12 12 #include "xrt/xrt_device.h" 13 13 #include <SDL2/SDL.h> 14 14 #include <assert.h> 15 + #include <string.h> 15 16 16 17 // Amount of look_speed units a mouse delta of 1px in screen space will rotate the device 17 18 #define SENSITIVITY 0.1f
+1 -1
src/xrt/targets/gui/gui_sdl2.c
··· 10 10 #include "ogl/ogl_api.h" 11 11 #include "gui_sdl2.h" 12 12 #include "util/u_git_tag.h" 13 - 13 + #include <stdio.h> 14 14 15 15 /* 16 16 *
+1
src/xrt/targets/gui/gui_sdl2_main.c
··· 10 10 #include "util/u_var.h" 11 11 #include "gui_sdl2.h" 12 12 #include "util/u_trace_marker.h" 13 + #include <string.h> 13 14 14 15 U_TRACE_TARGET_SETUP(U_TRACE_WHICH_SERVICE) 15 16
+1
src/xrt/targets/sdl_test/sdl_device.c
··· 13 13 #include "util/u_device.h" 14 14 #include "util/u_distortion_mesh.h" 15 15 16 + #include <stdio.h> 16 17 17 18 static xrt_result_t 18 19 sdl_hmd_get_tracked_pose(struct xrt_device *xdev,
+1
src/xrt/targets/sdl_test/sdl_program.cpp
··· 13 13 14 14 #include "sdl_internal.hpp" 15 15 16 + #include <cstdio> 16 17 17 18 void 18 19 sdl_create_window(struct sdl_program *sp)