From 8d0ad44edd81b39cc6d27e9a2a66afcce25eebe7 Mon Sep 17 00:00:00 2001 From: Petar Popovic Date: Sun, 28 Apr 2024 22:44:14 +0200 Subject: [PATCH] Adding tag names to enums Adding tag names to following enums: SDL_JoystickType, SDL_JoystickConnectionState, SDL_TouchDeviceType, SDL_DUMMY_ENUM --- include/SDL3/SDL_joystick.h | 4 ++-- include/SDL3/SDL_stdinc.h | 2 +- include/SDL3/SDL_touch.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/SDL3/SDL_joystick.h b/include/SDL3/SDL_joystick.h index ae23ad8d3c..69fa802e14 100644 --- a/include/SDL3/SDL_joystick.h +++ b/include/SDL3/SDL_joystick.h @@ -88,7 +88,7 @@ typedef SDL_GUID SDL_JoystickGUID; */ typedef Uint32 SDL_JoystickID; -typedef enum +typedef enum SDL_JoystickType { SDL_JOYSTICK_TYPE_UNKNOWN, SDL_JOYSTICK_TYPE_GAMEPAD, @@ -102,7 +102,7 @@ typedef enum SDL_JOYSTICK_TYPE_THROTTLE } SDL_JoystickType; -typedef enum +typedef enum SDL_JoystickConnectionState { SDL_JOYSTICK_CONNECTION_INVALID = -1, SDL_JOYSTICK_CONNECTION_UNKNOWN, diff --git a/include/SDL3/SDL_stdinc.h b/include/SDL3/SDL_stdinc.h index 00a54a139f..f3031e6f2a 100644 --- a/include/SDL3/SDL_stdinc.h +++ b/include/SDL3/SDL_stdinc.h @@ -439,7 +439,7 @@ SDL_COMPILE_TIME_ASSERT(sint64, sizeof(Sint64) == 8); #ifndef DOXYGEN_SHOULD_IGNORE_THIS #if !defined(SDL_PLATFORM_VITA) && !defined(SDL_PLATFORM_3DS) /* TODO: include/SDL_stdinc.h:390: error: size of array 'SDL_dummy_enum' is negative */ -typedef enum +typedef enum SDL_DUMMY_ENUM { DUMMY_ENUM_VALUE } SDL_DUMMY_ENUM; diff --git a/include/SDL3/SDL_touch.h b/include/SDL3/SDL_touch.h index 780c1d53c9..18aab0d7de 100644 --- a/include/SDL3/SDL_touch.h +++ b/include/SDL3/SDL_touch.h @@ -42,7 +42,7 @@ extern "C" { typedef Uint64 SDL_TouchID; typedef Uint64 SDL_FingerID; -typedef enum +typedef enum SDL_TouchDeviceType { SDL_TOUCH_DEVICE_INVALID = -1, SDL_TOUCH_DEVICE_DIRECT, /* touch screen with window-relative coordinates */