SDL: Removing trailing commas in enums in SDL headers

From b98116a996b1efe0e14177c7d53e02b09e187fb4 Mon Sep 17 00:00:00 2001
From: Petar Popovic <[EMAIL REDACTED]>
Date: Wed, 24 Apr 2024 14:55:50 +0200
Subject: [PATCH] Removing trailing commas in enums in SDL headers

Trailing commas in enums is a C99 feature.
This commit removes them in SDL headers for ANSI compatibility.
---
 include/SDL3/SDL_joystick.h   | 2 +-
 include/SDL3/SDL_keycode.h    | 2 +-
 include/SDL3/SDL_pixels.h     | 2 +-
 include/SDL3/SDL_properties.h | 2 +-
 include/SDL3/SDL_time.h       | 4 ++--
 5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/SDL3/SDL_joystick.h b/include/SDL3/SDL_joystick.h
index 727e8d7378532..ae23ad8d3c251 100644
--- a/include/SDL3/SDL_joystick.h
+++ b/include/SDL3/SDL_joystick.h
@@ -107,7 +107,7 @@ typedef enum
     SDL_JOYSTICK_CONNECTION_INVALID = -1,
     SDL_JOYSTICK_CONNECTION_UNKNOWN,
     SDL_JOYSTICK_CONNECTION_WIRED,
-    SDL_JOYSTICK_CONNECTION_WIRELESS,
+    SDL_JOYSTICK_CONNECTION_WIRELESS
 } SDL_JoystickConnectionState;
 
 #define SDL_JOYSTICK_AXIS_MAX   32767
diff --git a/include/SDL3/SDL_keycode.h b/include/SDL3/SDL_keycode.h
index 13b5df81288be..0dbd0a051bd1b 100644
--- a/include/SDL3/SDL_keycode.h
+++ b/include/SDL3/SDL_keycode.h
@@ -323,7 +323,7 @@ typedef enum SDL_Keymod
     SDL_KMOD_CTRL = SDL_KMOD_LCTRL | SDL_KMOD_RCTRL,    /**< Any Ctrl key is down. */
     SDL_KMOD_SHIFT = SDL_KMOD_LSHIFT | SDL_KMOD_RSHIFT, /**< Any Shift key is down. */
     SDL_KMOD_ALT = SDL_KMOD_LALT | SDL_KMOD_RALT,       /**< Any Alt key is down. */
-    SDL_KMOD_GUI = SDL_KMOD_LGUI | SDL_KMOD_RGUI,       /**< Any GUI key is down. */
+    SDL_KMOD_GUI = SDL_KMOD_LGUI | SDL_KMOD_RGUI        /**< Any GUI key is down. */
 } SDL_Keymod;
 
 #endif /* SDL_keycode_h_ */
diff --git a/include/SDL3/SDL_pixels.h b/include/SDL3/SDL_pixels.h
index 2981df295bbff..495f447d41e4d 100644
--- a/include/SDL3/SDL_pixels.h
+++ b/include/SDL3/SDL_pixels.h
@@ -672,7 +672,7 @@ typedef enum SDL_Colorspace
     SDL_COLORSPACE_RGB_DEFAULT = SDL_COLORSPACE_SRGB,
 
     /* The default colorspace for YUV surfaces if no colorspace is specified */
-    SDL_COLORSPACE_YUV_DEFAULT = SDL_COLORSPACE_JPEG,
+    SDL_COLORSPACE_YUV_DEFAULT = SDL_COLORSPACE_JPEG
 
 } SDL_Colorspace;
 
diff --git a/include/SDL3/SDL_properties.h b/include/SDL3/SDL_properties.h
index 53cfc4a15f308..37f777ea53441 100644
--- a/include/SDL3/SDL_properties.h
+++ b/include/SDL3/SDL_properties.h
@@ -56,7 +56,7 @@ typedef enum SDL_PropertyType
     SDL_PROPERTY_TYPE_STRING,
     SDL_PROPERTY_TYPE_NUMBER,
     SDL_PROPERTY_TYPE_FLOAT,
-    SDL_PROPERTY_TYPE_BOOLEAN,
+    SDL_PROPERTY_TYPE_BOOLEAN
 } SDL_PropertyType;
 
 /**
diff --git a/include/SDL3/SDL_time.h b/include/SDL3/SDL_time.h
index c2c94688ff338..c2d5ace325341 100644
--- a/include/SDL3/SDL_time.h
+++ b/include/SDL3/SDL_time.h
@@ -67,7 +67,7 @@ typedef enum SDL_DateFormat
 {
     SDL_DATE_FORMAT_YYYYMMDD = 0, /**< Year/Month/Day */
     SDL_DATE_FORMAT_DDMMYYYY = 1, /**< Day/Month/Year */
-    SDL_DATE_FORMAT_MMDDYYYY = 2, /**< Month/Day/Year */
+    SDL_DATE_FORMAT_MMDDYYYY = 2  /**< Month/Day/Year */
 } SDL_DateFormat;
 
 /**
@@ -80,7 +80,7 @@ typedef enum SDL_DateFormat
 typedef enum SDL_TimeFormat
 {
     SDL_TIME_FORMAT_24HR = 0, /**< 24 hour time */
-    SDL_TIME_FORMAT_12HR = 1, /**< 12 hour time */
+    SDL_TIME_FORMAT_12HR = 1  /**< 12 hour time */
 } SDL_TimeFormat;
 
 /*