Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration]

main
Sam Lantinga 2023-12-29 19:40:45 -08:00
parent 423b1fafcd
commit dfe1a37bab
1 changed files with 2 additions and 1 deletions

View File

@ -866,7 +866,7 @@ SDL_bool SDL_PenPerformHitTest(void)
#define PEN_NAME_LAST PEN_NAME_STROKE
#define PEN_NUM_NAMES (PEN_NAME_LAST + 1)
const static char *default_pen_names[PEN_NUM_NAMES] = {
static const char *default_pen_names[] = {
/* PEN_NAME_AES */
"AES Pen",
/* PEN_NAME_ART */
@ -892,6 +892,7 @@ const static char *default_pen_names[PEN_NUM_NAMES] = {
/* PEN_NAME_STROKE */
"Stroke Pen"
};
SDL_COMPILE_TIME_ASSERT(default_pen_names, SDL_arraysize(default_pen_names) == PEN_NUM_NAMES);
#define PEN_SPEC_TYPE_SHIFT 0
#define PEN_SPEC_TYPE_MASK 0x0000000fu