I just installed SDL 2.26.0 version and to use it with my projects needed to add -D_HAVE_STDINT_H as cflags. Without it I get error:
/usr/include/SDL2/SDL_config.h:542:58: error: “_HAVE_STDINT_H” is not defined, evaluates to 0 [-Werror=undef]
542 | #if !defined(STDINT_H) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
compilation terminated due to -Wfatal-errors.
cc1: all warnings being treated as errors
when I do: sdl2-config --cflags I get:
Maybe it should write: -I/usr/include/SDL2 -D_REENTRANT -D_HAVE_STDINT_H ?