Fixed build error

'__inline__' is not at beginning of declaration [-Werror=old-style-declaration]
This commit is contained in:
Sam Lantinga
2023-03-30 10:48:48 -07:00
parent 1fd15c9b4e
commit e2f560d4bb
2 changed files with 2 additions and 2 deletions

View File

@@ -721,7 +721,7 @@ end:
#define FORMAT_2101010 1
#define FORMAT_HAS_ALPHA(format) format == 0
#define FORMAT_HAS_NO_ALPHA(format) format < 0
static int SDL_INLINE detect_format(SDL_PixelFormat *pf)
static int detect_format(SDL_PixelFormat *pf)
{
if (pf->format == SDL_PIXELFORMAT_ARGB2101010) {
return FORMAT_2101010;