mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-20 04:05:00 +08:00
Remove underscore in guard header defines (#6922)
This commit is contained in:
@@ -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. */
|
||||
|
||||
@@ -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__)
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user