Remove underscore in guard header defines (#6922)

This commit is contained in:
Sylvain Becker 2022-12-27 21:31:12 +01:00 committed by GitHub
parent cdbd1be8c6
commit 07808d6a03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 55 additions and 55 deletions

View file

@ -28,10 +28,10 @@
*/
/* This shouldn't be nested -- included it around code only. */
#ifdef _SDL_begin_code_h
#ifdef SDL_begin_code_h
#error Nested inclusion of SDL_begin_code.h
#endif
#define _SDL_begin_code_h
#define SDL_begin_code_h
#ifndef SDL_DEPRECATED
# if defined(__GNUC__) && (__GNUC__ >= 4) /* technically, this arrived in gcc 3.1, but oh well. */

View file

@ -26,10 +26,10 @@
* after you finish any function and structure declarations in your headers
*/
#ifndef _SDL_begin_code_h
#ifndef SDL_begin_code_h
#error SDL_close_code.h included without matching SDL_begin_code.h
#endif
#undef _SDL_begin_code_h
#undef SDL_begin_code_h
/* Reset structure packing at previous byte alignment */
#if defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__)

View file

@ -25,8 +25,8 @@
* Include file for SDL locale services
*/
#ifndef _SDL_locale_h
#define _SDL_locale_h
#ifndef SDL_locale_h
#define SDL_locale_h
#include <SDL3/SDL_stdinc.h>
#include <SDL3/SDL_error.h>
@ -98,4 +98,4 @@ extern DECLSPEC SDL_Locale * SDLCALL SDL_GetPreferredLocales(void);
#endif
#include <SDL3/SDL_close_code.h>
#endif /* _SDL_locale_h */
#endif /* SDL_locale_h */

View file

@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef _SDL_build_config_emscripten_h_
#define _SDL_build_config_emscripten_h_
#ifndef SDL_build_config_emscripten_h
#define SDL_build_config_emscripten_h
#include <SDL3/SDL_platform.h>
@ -210,4 +210,4 @@
/* Enable system filesystem support */
#define SDL_FILESYSTEM_EMSCRIPTEN 1
#endif /* _SDL_build_config_emscripten_h_ */
#endif /* SDL_build_config_emscripten_h */

View file

@ -20,8 +20,8 @@
*/
#include "SDL_internal.h"
#ifndef _SDL_aaudio_h
#define _SDL_aaudio_h
#ifndef SDL_aaudio_h
#define SDL_aaudio_h
#include "../SDL_sysaudio.h"
#include <stdbool.h>
@ -47,4 +47,4 @@ void aaudio_ResumeDevices(void);
void aaudio_PauseDevices(void);
SDL_bool aaudio_DetectBrokenPlayState(void);
#endif /* _SDL_aaudio_h */
#endif /* SDL_aaudio_h */

View file

@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef _SDL_n3dsaudio_h_
#define _SDL_n3dsaudio_h_
#ifndef SDL_n3dsaudio_h
#define SDL_n3dsaudio_h
#include <3ds.h>
@ -46,4 +46,4 @@ struct SDL_PrivateAudioData
SDL_bool isCancelled;
};
#endif /* _SDL_n3dsaudio_h_ */
#endif /* SDL_n3dsaudio_h */

View file

@ -20,8 +20,8 @@
*/
#include "SDL_internal.h"
#ifndef _SDL_openslesaudio_h
#define _SDL_openslesaudio_h
#ifndef SDL_openslesaudio_h
#define SDL_openslesaudio_h
#include "../SDL_sysaudio.h"
@ -41,4 +41,4 @@ struct SDL_PrivateAudioData
void openslES_ResumeDevices(void);
void openslES_PauseDevices(void);
#endif /* _SDL_openslesaudio_h */
#endif /* SDL_openslesaudio_h */

View file

@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef _SDL_vitaaudio_h
#define _SDL_vitaaudio_h
#ifndef SDL_vitaaudio_h
#define SDL_vitaaudio_h
#include "../SDL_sysaudio.h"
@ -41,4 +41,4 @@ struct SDL_PrivateAudioData
int next_buffer;
};
#endif /* _SDL_vitaaudio_h */
#endif /* SDL_vitaaudio_h */

View file

@ -21,8 +21,8 @@
#include "SDL_internal.h"
#ifndef __SDL_KMSDRMVIDEO_H__
#define __SDL_KMSDRMVIDEO_H__
#ifndef SDL_kmsdrmvideo_h
#define SDL_kmsdrmvideo_h
#include "../SDL_sysvideo.h"
@ -150,4 +150,4 @@ int KMSDRM_GLES_GetSwapInterval(_THIS);
int KMSDRM_GLES_SwapWindow(_THIS, SDL_Window *window);
void KMSDRM_GLES_DeleteContext(_THIS, SDL_GLContext context);
#endif /* __SDL_KMSDRMVIDEO_H__ */
#endif /* SDL_kmsdrmvideo_h */

View file

@ -21,8 +21,8 @@
#include "SDL_internal.h"
#ifndef _SDL_ngagevideo_h
#define _SDL_ngagevideo_h
#ifndef SDL_ngagevideo_h
#define SDL_ngagevideo_h
#include "../SDL_sysvideo.h"
@ -63,4 +63,4 @@ typedef struct SDL_VideoData
} SDL_VideoData;
#endif /* _SDL_ngagevideo_h */
#endif /* SDL_ngagevideo_h */

View file

@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef _SDL_ngagewindow_h
#define _SDL_ngagewindow_h
#ifndef SDL_ngagewindow_h
#define SDL_ngagewindow_h
#include "../SDL_sysvideo.h"
@ -40,4 +40,4 @@ NGAGE_CreateWindow(_THIS, SDL_Window *window);
extern void
NGAGE_DestroyWindow(_THIS, SDL_Window *window);
#endif /* _SDL_ngagewindow */
#endif /* SDL_ngagewindow */

View file

@ -20,8 +20,8 @@
*/
#include "SDL_internal.h"
#ifndef _SDL_offscreenopengles_h
#define _SDL_offscreenopengles_h
#ifndef SDL_offscreenopengles_h
#define SDL_offscreenopengles_h
#if SDL_VIDEO_DRIVER_OFFSCREEN && SDL_VIDEO_OPENGL_EGL
@ -41,4 +41,4 @@ extern int OFFSCREEN_GLES_SwapWindow(_THIS, SDL_Window *window);
#endif /* SDL_VIDEO_DRIVER_OFFSCREEN && SDL_VIDEO_OPENGL_EGL */
#endif /* _SDL_offscreenopengles_h */
#endif /* SDL_offscreenopengles_h */

View file

@ -20,9 +20,9 @@
*/
#include "SDL_internal.h"
#ifndef _SDL_offscreenvideo_h
#define _SDL_offscreenvideo_h
#ifndef SDL_offscreenvideo_h
#define SDL_offscreenvideo_h
#include "../SDL_sysvideo.h"
#endif /* _SDL_offscreenvideo_h */
#endif /* SDL_offscreenvideo_h */

View file

@ -20,8 +20,8 @@
*/
#include "SDL_internal.h"
#ifndef _SDL_offscreenwindow_h
#define _SDL_offscreenwindow_h
#ifndef SDL_offscreenwindow_h
#define SDL_offscreenwindow_h
#include "SDL_offscreenvideo.h"
@ -37,4 +37,4 @@ typedef struct
extern int OFFSCREEN_CreateWindow(_THIS, SDL_Window *window);
extern void OFFSCREEN_DestroyWindow(_THIS, SDL_Window *window);
#endif /* _SDL_offscreenwindow */
#endif /* SDL_offscreenwindow_h */

View file

@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef __SDL_RPIVIDEO_H__
#define __SDL_RPIVIDEO_H__
#ifndef SDL_rpivideo_h
#define SDL_rpivideo_h
#include "SDL_internal.h"
#include "../SDL_sysvideo.h"
@ -91,4 +91,4 @@ int RPI_GLES_GetSwapInterval(_THIS);
int RPI_GLES_SwapWindow(_THIS, SDL_Window *window);
void RPI_GLES_DeleteContext(_THIS, SDL_GLContext context);
#endif /* __SDL_RPIVIDEO_H__ */
#endif /* SDL_rpivideo_h */

View file

@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef _SDL_vitakeyboard_h
#define _SDL_vitakeyboard_h
#ifndef SDL_vitakeyboard_h
#define SDL_vitakeyboard_h
#include "SDL_internal.h"
@ -28,4 +28,4 @@
extern void VITA_InitKeyboard(void);
extern void VITA_PollKeyboard(void);
#endif /* _SDL_vitakeyboard_h */
#endif /* SDL_vitakeyboard_h */

View file

@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef _SDL_vitamouse_h
#define _SDL_vitamouse_h
#ifndef SDL_vitamouse_h
#define SDL_vitamouse_h
#include "SDL_internal.h"
@ -28,4 +28,4 @@
extern void VITA_InitMouse(void);
extern void VITA_PollMouse(void);
#endif /* _SDL_vitamouse_h */
#endif /* SDL_vitamouse_h */

View file

@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef _SDL_vitatouch_h
#define _SDL_vitatouch_h
#ifndef SDL_vitatouch_h
#define SDL_vitatouch_h
#include "SDL_internal.h"
@ -30,4 +30,4 @@ extern void VITA_QuitTouch(void);
extern void VITA_PollTouch(void);
void VITA_ConvertTouchXYToSDLXY(float *sdl_x, float *sdl_y, int vita_x, int vita_y, int port);
#endif /* _SDL_vitatouch_h */
#endif /* SDL_vitatouch_h */

View file

@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef _SDL_vitavideo_h
#define _SDL_vitavideo_h
#ifndef SDL_vitavideo_h
#define SDL_vitavideo_h
#include "SDL_internal.h"
#include "../SDL_sysvideo.h"
@ -110,4 +110,4 @@ SDL_bool VITA_IsScreenKeyboardShown(_THIS, SDL_Window *window);
void VITA_PumpEvents(_THIS);
#endif /* _SDL_pspvideo_h */
#endif /* SDL_pspvideo_h */