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
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 */