Skip to content

Commit

Permalink
Remove underscore in guard header defines (#6922)
Browse files Browse the repository at this point in the history
  • Loading branch information
1bsyl committed Dec 27, 2022
1 parent cdbd1be commit 07808d6
Show file tree
Hide file tree
Showing 19 changed files with 55 additions and 55 deletions.
4 changes: 2 additions & 2 deletions include/SDL3/SDL_begin_code.h
Expand Up @@ -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. */
Expand Down
4 changes: 2 additions & 2 deletions include/SDL3/SDL_close_code.h
Expand Up @@ -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__)
Expand Down
6 changes: 3 additions & 3 deletions include/SDL3/SDL_locale.h
Expand Up @@ -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>
Expand Down Expand Up @@ -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 */
6 changes: 3 additions & 3 deletions include/build_config/SDL_build_config_emscripten.h
Expand Up @@ -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>

Expand Down Expand Up @@ -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 */
6 changes: 3 additions & 3 deletions src/audio/aaudio/SDL_aaudio.h
Expand Up @@ -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>
Expand All @@ -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 */
6 changes: 3 additions & 3 deletions src/audio/n3ds/SDL_n3dsaudio.h
Expand Up @@ -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>

Expand All @@ -46,4 +46,4 @@ struct SDL_PrivateAudioData
SDL_bool isCancelled;
};

#endif /* _SDL_n3dsaudio_h_ */
#endif /* SDL_n3dsaudio_h */
6 changes: 3 additions & 3 deletions src/audio/openslES/SDL_openslES.h
Expand Up @@ -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"

Expand All @@ -41,4 +41,4 @@ struct SDL_PrivateAudioData
void openslES_ResumeDevices(void);
void openslES_PauseDevices(void);

#endif /* _SDL_openslesaudio_h */
#endif /* SDL_openslesaudio_h */
6 changes: 3 additions & 3 deletions src/audio/vita/SDL_vitaaudio.h
Expand Up @@ -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"

Expand All @@ -41,4 +41,4 @@ struct SDL_PrivateAudioData
int next_buffer;
};

#endif /* _SDL_vitaaudio_h */
#endif /* SDL_vitaaudio_h */
6 changes: 3 additions & 3 deletions src/video/kmsdrm/SDL_kmsdrmvideo.h
Expand Up @@ -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"

Expand Down Expand Up @@ -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 */
6 changes: 3 additions & 3 deletions src/video/ngage/SDL_ngagevideo.h
Expand Up @@ -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"

Expand Down Expand Up @@ -63,4 +63,4 @@ typedef struct SDL_VideoData

} SDL_VideoData;

#endif /* _SDL_ngagevideo_h */
#endif /* SDL_ngagevideo_h */
6 changes: 3 additions & 3 deletions src/video/ngage/SDL_ngagewindow.h
Expand Up @@ -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"

Expand All @@ -40,4 +40,4 @@ NGAGE_CreateWindow(_THIS, SDL_Window *window);
extern void
NGAGE_DestroyWindow(_THIS, SDL_Window *window);

#endif /* _SDL_ngagewindow */
#endif /* SDL_ngagewindow */
6 changes: 3 additions & 3 deletions src/video/offscreen/SDL_offscreenopengles.h
Expand Up @@ -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

Expand All @@ -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 */
6 changes: 3 additions & 3 deletions src/video/offscreen/SDL_offscreenvideo.h
Expand Up @@ -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 */
6 changes: 3 additions & 3 deletions src/video/offscreen/SDL_offscreenwindow.h
Expand Up @@ -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"

Expand All @@ -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 */
6 changes: 3 additions & 3 deletions src/video/raspberry/SDL_rpivideo.h
Expand Up @@ -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"
Expand Down Expand Up @@ -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 */
6 changes: 3 additions & 3 deletions src/video/vita/SDL_vitakeyboard.h
Expand Up @@ -19,13 +19,13 @@
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"

/* Keyboard functions */
extern void VITA_InitKeyboard(void);
extern void VITA_PollKeyboard(void);

#endif /* _SDL_vitakeyboard_h */
#endif /* SDL_vitakeyboard_h */
6 changes: 3 additions & 3 deletions src/video/vita/SDL_vitamouse_c.h
Expand Up @@ -19,13 +19,13 @@
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"

/* mouse functions */
extern void VITA_InitMouse(void);
extern void VITA_PollMouse(void);

#endif /* _SDL_vitamouse_h */
#endif /* SDL_vitamouse_h */
6 changes: 3 additions & 3 deletions src/video/vita/SDL_vitatouch.h
Expand Up @@ -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"

Expand All @@ -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 */
6 changes: 3 additions & 3 deletions src/video/vita/SDL_vitavideo.h
Expand Up @@ -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"
Expand Down Expand Up @@ -110,4 +110,4 @@ SDL_bool VITA_IsScreenKeyboardShown(_THIS, SDL_Window *window);

void VITA_PumpEvents(_THIS);

#endif /* _SDL_pspvideo_h */
#endif /* SDL_pspvideo_h */

0 comments on commit 07808d6

Please sign in to comment.