diff --git a/include/SDL3/SDL_audio.h b/include/SDL3/SDL_audio.h index bca69d2c39..169b3d763e 100644 --- a/include/SDL3/SDL_audio.h +++ b/include/SDL3/SDL_audio.h @@ -925,8 +925,8 @@ extern DECLSPEC int SDLCALL SDL_ConvertAudio(SDL_AudioCVT * cvt); - You push data as you have it, and pull it when you need it */ /* this is opaque to the outside world. */ -struct _SDL_AudioStream; -typedef struct _SDL_AudioStream SDL_AudioStream; +struct SDL_AudioStream; +typedef struct SDL_AudioStream SDL_AudioStream; /** * Create a new audio stream. diff --git a/include/SDL3/SDL_haptic.h b/include/SDL3/SDL_haptic.h index 5397c4c6db..2b097cd97d 100644 --- a/include/SDL3/SDL_haptic.h +++ b/include/SDL3/SDL_haptic.h @@ -137,8 +137,8 @@ extern "C" { * \sa SDL_HapticOpenFromJoystick * \sa SDL_HapticClose */ -struct _SDL_Haptic; -typedef struct _SDL_Haptic SDL_Haptic; +struct SDL_Haptic; +typedef struct SDL_Haptic SDL_Haptic; /** diff --git a/include/SDL3/SDL_sensor.h b/include/SDL3/SDL_sensor.h index 8eee69f26a..1fee691f17 100644 --- a/include/SDL3/SDL_sensor.h +++ b/include/SDL3/SDL_sensor.h @@ -48,8 +48,8 @@ extern "C" { * for sensors, and load appropriate drivers. */ -struct _SDL_Sensor; -typedef struct _SDL_Sensor SDL_Sensor; +struct SDL_Sensor; +typedef struct SDL_Sensor SDL_Sensor; /** * This is a unique ID for a sensor for the time it is connected to the system, diff --git a/src/audio/SDL_audiocvt.c b/src/audio/SDL_audiocvt.c index 23778e8d55..4bfece3654 100644 --- a/src/audio/SDL_audiocvt.c +++ b/src/audio/SDL_audiocvt.c @@ -830,7 +830,7 @@ typedef int (*SDL_ResampleAudioStreamFunc)(SDL_AudioStream *stream, const void * typedef void (*SDL_ResetAudioStreamResamplerFunc)(SDL_AudioStream *stream); typedef void (*SDL_CleanupAudioStreamResamplerFunc)(SDL_AudioStream *stream); -struct _SDL_AudioStream +struct SDL_AudioStream { SDL_AudioCVT cvt_before_resampling; SDL_AudioCVT cvt_after_resampling; diff --git a/src/haptic/SDL_syshaptic.h b/src/haptic/SDL_syshaptic.h index 9ef5b1b818..4f16902243 100644 --- a/src/haptic/SDL_syshaptic.h +++ b/src/haptic/SDL_syshaptic.h @@ -38,7 +38,7 @@ struct haptic_effect /* * The real SDL_Haptic struct. */ -struct _SDL_Haptic +struct SDL_Haptic { Uint8 index; /* Stores index it is attached to */ @@ -53,7 +53,7 @@ struct _SDL_Haptic int rumble_id; /* ID of rumble effect for simple rumble API. */ SDL_HapticEffect rumble_effect; /* Rumble effect. */ - struct _SDL_Haptic *next; /* pointer to next haptic we have allocated */ + struct SDL_Haptic *next; /* pointer to next haptic we have allocated */ }; /* diff --git a/src/joystick/SDL_joystick_c.h b/src/joystick/SDL_joystick_c.h index c9e6b49131..7e2a1a2587 100644 --- a/src/joystick/SDL_joystick_c.h +++ b/src/joystick/SDL_joystick_c.h @@ -31,7 +31,7 @@ extern "C" { #endif -struct _SDL_JoystickDriver; +struct SDL_JoystickDriver; /* Initialization and shutdown functions */ extern int SDL_JoystickInit(void); @@ -161,13 +161,13 @@ typedef enum EMappingKind_Hat = 3 } EMappingKind; -typedef struct _SDL_InputMapping +typedef struct SDL_InputMapping { EMappingKind kind; Uint8 target; } SDL_InputMapping; -typedef struct _SDL_GamepadMapping +typedef struct SDL_GamepadMapping { SDL_InputMapping a; SDL_InputMapping b; diff --git a/src/joystick/SDL_sysjoystick.h b/src/joystick/SDL_sysjoystick.h index 99727d8acc..e75ec5ef6b 100644 --- a/src/joystick/SDL_sysjoystick.h +++ b/src/joystick/SDL_sysjoystick.h @@ -32,7 +32,7 @@ extern "C" { #endif /* The SDL joystick structure */ -typedef struct _SDL_JoystickAxisInfo +typedef struct SDL_JoystickAxisInfo { Sint16 initial_value; /* Initial axis state */ Sint16 value; /* Current axis state */ @@ -43,7 +43,7 @@ typedef struct _SDL_JoystickAxisInfo SDL_bool sending_initial_value; /* Whether we are sending the initial axis value */ } SDL_JoystickAxisInfo; -typedef struct _SDL_JoystickTouchpadFingerInfo +typedef struct SDL_JoystickTouchpadFingerInfo { Uint8 state; float x; @@ -51,13 +51,13 @@ typedef struct _SDL_JoystickTouchpadFingerInfo float pressure; } SDL_JoystickTouchpadFingerInfo; -typedef struct _SDL_JoystickTouchpadInfo +typedef struct SDL_JoystickTouchpadInfo { int nfingers; SDL_JoystickTouchpadFingerInfo *fingers; } SDL_JoystickTouchpadInfo; -typedef struct _SDL_JoystickSensorInfo +typedef struct SDL_JoystickSensorInfo { SDL_SensorType type; SDL_bool enabled; @@ -113,7 +113,7 @@ struct _SDL_Joystick SDL_bool delayed_guide_button _guarded; /* SDL_TRUE if this device has the guide button event delayed */ SDL_JoystickPowerLevel epowerlevel _guarded; /* power level of this joystick, SDL_JOYSTICK_POWER_UNKNOWN if not supported */ - struct _SDL_JoystickDriver *driver _guarded; + struct SDL_JoystickDriver *driver _guarded; struct joystick_hwdata *hwdata _guarded; /* Driver dependent information */ @@ -138,7 +138,7 @@ struct _SDL_Joystick /* Macro to combine a USB vendor ID and product ID into a single Uint32 value */ #define MAKE_VIDPID(VID, PID) (((Uint32)(VID)) << 16 | (PID)) -typedef struct _SDL_JoystickDriver +typedef struct SDL_JoystickDriver { /* Function to scan the system for joysticks. * Joystick 0 should be the system default joystick. diff --git a/src/sensor/SDL_syssensor.h b/src/sensor/SDL_syssensor.h index 5389dd3a98..736ea18cd2 100644 --- a/src/sensor/SDL_syssensor.h +++ b/src/sensor/SDL_syssensor.h @@ -28,7 +28,7 @@ #include "SDL_sensor_c.h" /* The SDL sensor structure */ -struct _SDL_Sensor +struct SDL_Sensor { SDL_SensorID instance_id; /* Device instance, monotonically increasing from 0 */ char *name; /* Sensor name - system dependent */ @@ -43,7 +43,7 @@ struct _SDL_Sensor int ref_count; /* Reference count for multiple opens */ - struct _SDL_Sensor *next; /* pointer to next sensor we have allocated */ + struct SDL_Sensor *next; /* pointer to next sensor we have allocated */ }; typedef struct _SDL_SensorDriver