mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-08-21 14:20:55 +00:00
c15b6a14578bf6544cad834473d35bf2e38ff3fd
When HAVE_GETRESUID/HAVE_GETRESGID are not defined, SDL_waylandvideo.c defines static inline fallbacks using the libc names. glibc declares both functions non-static in <unistd.h>, so on a toolchain where the feature checks fail while those declarations are still visible the file fails to compile: error: static declaration of 'getresuid' follows non-static declaration Give the fallbacks SDL-private names and call those, so a fallback can never collide with a libc declaration. Also fixes the fallback getresgid() taking uid_t* parameters where it should take gid_t*.
Simple DirectMedia Layer (SDL for short) is a cross-platform library designed to make it easy to write multi-media software, such as games and emulators.
You can find the latest release and additional information at: https://www.libsdl.org/
Installation instructions and a quick introduction is available in INSTALL.md
This library is distributed under the terms of the zlib license, available in LICENSE.txt.
Enjoy!
Sam Lantinga (slouken@libsdl.org)
Languages
C
87.6%
C++
4.4%
Objective-C
3.4%
CMake
1.7%
Java
0.7%
Other
1.9%