mirror of
https://github.com/encounter/SDL.git
synced 2025-12-14 07:36:09 +00:00
Renaming of guard header names to quiet -Wreserved-id-macro
Patch contributed by Sylvain
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
*/
|
||||
#include "../SDL_internal.h"
|
||||
|
||||
#ifndef _SDL_blit_h
|
||||
#define _SDL_blit_h
|
||||
#ifndef SDL_blit_h_
|
||||
#define SDL_blit_h_
|
||||
|
||||
#include "SDL_cpuinfo.h"
|
||||
#include "SDL_endian.h"
|
||||
@@ -547,6 +547,6 @@ do { \
|
||||
#pragma warning(disable: 4550)
|
||||
#endif
|
||||
|
||||
#endif /* _SDL_blit_h */
|
||||
#endif /* SDL_blit_h_ */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
*/
|
||||
#include "../SDL_internal.h"
|
||||
|
||||
#ifndef _SDL_egl_h
|
||||
#define _SDL_egl_h
|
||||
#ifndef SDL_egl_h_
|
||||
#define SDL_egl_h_
|
||||
|
||||
#if SDL_VIDEO_OPENGL_EGL
|
||||
|
||||
@@ -125,6 +125,6 @@ BACKEND ## _GLES_CreateContext(_THIS, SDL_Window * window) \
|
||||
|
||||
#endif /* SDL_VIDEO_OPENGL_EGL */
|
||||
|
||||
#endif /* _SDL_egl_h */
|
||||
#endif /* SDL_egl_h_ */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
*/
|
||||
#include "../SDL_internal.h"
|
||||
|
||||
#ifndef _SDL_shape_internals_h
|
||||
#define _SDL_shape_internals_h
|
||||
#ifndef SDL_shape_internals_h_
|
||||
#define SDL_shape_internals_h_
|
||||
|
||||
#include "SDL_rect.h"
|
||||
#include "SDL_shape.h"
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
*/
|
||||
#include "../SDL_internal.h"
|
||||
|
||||
#ifndef _SDL_sysvideo_h
|
||||
#define _SDL_sysvideo_h
|
||||
#ifndef SDL_sysvideo_h_
|
||||
#define SDL_sysvideo_h_
|
||||
|
||||
#include "SDL_messagebox.h"
|
||||
#include "SDL_shape.h"
|
||||
@@ -443,6 +443,6 @@ extern SDL_bool SDL_ShouldAllowTopmost(void);
|
||||
|
||||
extern float SDL_ComputeDiagonalDPI(int hpix, int vpix, float hinches, float vinches);
|
||||
|
||||
#endif /* _SDL_sysvideo_h */
|
||||
#endif /* SDL_sysvideo_h_ */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
||||
@@ -20,11 +20,11 @@
|
||||
*/
|
||||
#include "../../SDL_internal.h"
|
||||
|
||||
#ifndef _SDL_nullvideo_h
|
||||
#define _SDL_nullvideo_h
|
||||
#ifndef SDL_nullvideo_h_
|
||||
#define SDL_nullvideo_h_
|
||||
|
||||
#include "../SDL_sysvideo.h"
|
||||
|
||||
#endif /* _SDL_nullvideo_h */
|
||||
#endif /* SDL_nullvideo_h_ */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
||||
@@ -20,14 +20,14 @@
|
||||
*/
|
||||
#include "../../SDL_internal.h"
|
||||
|
||||
#ifndef _SDL_x11clipboard_h
|
||||
#define _SDL_x11clipboard_h
|
||||
#ifndef SDL_x11clipboard_h_
|
||||
#define SDL_x11clipboard_h_
|
||||
|
||||
extern int X11_SetClipboardText(_THIS, const char *text);
|
||||
extern char *X11_GetClipboardText(_THIS);
|
||||
extern SDL_bool X11_HasClipboardText(_THIS);
|
||||
extern Atom X11_GetSDLCutBufferClipboardType(Display *display);
|
||||
|
||||
#endif /* _SDL_x11clipboard_h */
|
||||
#endif /* SDL_x11clipboard_h_ */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
*/
|
||||
#include "../../SDL_internal.h"
|
||||
|
||||
#ifndef _SDL_x11dyn_h
|
||||
#define _SDL_x11dyn_h
|
||||
#ifndef SDL_x11dyn_h_
|
||||
#define SDL_x11dyn_h_
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xutil.h>
|
||||
@@ -107,5 +107,5 @@ extern SDL_DYNX11FN_XGetICValues X11_XGetICValues;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* !defined _SDL_x11dyn_h */
|
||||
#endif /* !defined SDL_x11dyn_h_ */
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
*/
|
||||
#include "../../SDL_internal.h"
|
||||
|
||||
#ifndef _SDL_x11events_h
|
||||
#define _SDL_x11events_h
|
||||
#ifndef SDL_x11events_h_
|
||||
#define SDL_x11events_h_
|
||||
|
||||
extern void X11_PumpEvents(_THIS);
|
||||
extern void X11_SuspendScreenSaver(_THIS);
|
||||
|
||||
#endif /* _SDL_x11events_h */
|
||||
#endif /* SDL_x11events_h_ */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
*/
|
||||
#include "../../SDL_internal.h"
|
||||
|
||||
#ifndef _SDL_x11keyboard_h
|
||||
#define _SDL_x11keyboard_h
|
||||
#ifndef SDL_x11keyboard_h_
|
||||
#define SDL_x11keyboard_h_
|
||||
|
||||
extern int X11_InitKeyboard(_THIS);
|
||||
extern void X11_UpdateKeymap(_THIS);
|
||||
@@ -31,6 +31,6 @@ extern void X11_StopTextInput(_THIS);
|
||||
extern void X11_SetTextInputRect(_THIS, SDL_Rect *rect);
|
||||
extern KeySym X11_KeyCodeToSym(_THIS, KeyCode, unsigned char group);
|
||||
|
||||
#endif /* _SDL_x11keyboard_h */
|
||||
#endif /* SDL_x11keyboard_h_ */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
*/
|
||||
#include "../../SDL_internal.h"
|
||||
|
||||
#ifndef _SDL_x11modes_h
|
||||
#define _SDL_x11modes_h
|
||||
#ifndef SDL_x11modes_h_
|
||||
#define SDL_x11modes_h_
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@@ -80,6 +80,6 @@ extern int X11_GetDisplayBounds(_THIS, SDL_VideoDisplay * sdl_display, SDL_Rect
|
||||
extern int X11_GetDisplayUsableBounds(_THIS, SDL_VideoDisplay * sdl_display, SDL_Rect * rect);
|
||||
extern int X11_GetDisplayDPI(_THIS, SDL_VideoDisplay * sdl_display, float * ddpi, float * hdpi, float * vdpi);
|
||||
|
||||
#endif /* _SDL_x11modes_h */
|
||||
#endif /* SDL_x11modes_h_ */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
*/
|
||||
#include "../../SDL_internal.h"
|
||||
|
||||
#ifndef _SDL_x11mouse_h
|
||||
#define _SDL_x11mouse_h
|
||||
#ifndef SDL_x11mouse_h_
|
||||
#define SDL_x11mouse_h_
|
||||
|
||||
extern void X11_InitMouse(_THIS);
|
||||
extern void X11_QuitMouse(_THIS);
|
||||
|
||||
#endif /* _SDL_x11mouse_h */
|
||||
#endif /* SDL_x11mouse_h_ */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
*/
|
||||
#include "../../SDL_internal.h"
|
||||
|
||||
#ifndef _SDL_x11opengl_h
|
||||
#define _SDL_x11opengl_h
|
||||
#ifndef SDL_x11opengl_h_
|
||||
#define SDL_x11opengl_h_
|
||||
|
||||
#if SDL_VIDEO_OPENGL_GLX
|
||||
#include "SDL_opengl.h"
|
||||
@@ -68,6 +68,6 @@ extern void X11_GL_DeleteContext(_THIS, SDL_GLContext context);
|
||||
|
||||
#endif /* SDL_VIDEO_OPENGL_GLX */
|
||||
|
||||
#endif /* _SDL_x11opengl_h */
|
||||
#endif /* SDL_x11opengl_h_ */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
*/
|
||||
#include "../../SDL_internal.h"
|
||||
|
||||
#ifndef _SDL_x11opengles_h
|
||||
#define _SDL_x11opengles_h
|
||||
#ifndef SDL_x11opengles_h_
|
||||
#define SDL_x11opengles_h_
|
||||
|
||||
#if SDL_VIDEO_OPENGL_EGL
|
||||
|
||||
@@ -51,6 +51,6 @@ extern int X11_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext contex
|
||||
|
||||
#endif /* SDL_VIDEO_OPENGL_EGL */
|
||||
|
||||
#endif /* _SDL_x11opengles_h */
|
||||
#endif /* SDL_x11opengles_h_ */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
*/
|
||||
#include "../../SDL_internal.h"
|
||||
|
||||
#ifndef _SDL_x11shape_h
|
||||
#define _SDL_x11shape_h
|
||||
#ifndef SDL_x11shape_h_
|
||||
#define SDL_x11shape_h_
|
||||
|
||||
#include "SDL_video.h"
|
||||
#include "SDL_shape.h"
|
||||
@@ -37,4 +37,4 @@ extern SDL_WindowShaper* X11_CreateShaper(SDL_Window* window);
|
||||
extern int X11_ResizeWindowShape(SDL_Window* window);
|
||||
extern int X11_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode);
|
||||
|
||||
#endif /* _SDL_x11shape_h */
|
||||
#endif /* SDL_x11shape_h_ */
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
*/
|
||||
#include "../../SDL_internal.h"
|
||||
|
||||
#ifndef _SDL_x11touch_h
|
||||
#define _SDL_x11touch_h
|
||||
#ifndef SDL_x11touch_h_
|
||||
#define SDL_x11touch_h_
|
||||
|
||||
extern void X11_InitTouch(_THIS);
|
||||
extern void X11_QuitTouch(_THIS);
|
||||
|
||||
#endif /* _SDL_x11touch_h */
|
||||
#endif /* SDL_x11touch_h_ */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
*/
|
||||
#include "../../SDL_internal.h"
|
||||
|
||||
#ifndef _SDL_x11video_h
|
||||
#define _SDL_x11video_h
|
||||
#ifndef SDL_x11video_h_
|
||||
#define SDL_x11video_h_
|
||||
|
||||
#include "SDL_keycode.h"
|
||||
|
||||
@@ -141,6 +141,6 @@ typedef struct SDL_VideoData
|
||||
|
||||
extern SDL_bool X11_UseDirectColorVisuals(void);
|
||||
|
||||
#endif /* _SDL_x11video_h */
|
||||
#endif /* SDL_x11video_h_ */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
*/
|
||||
#include "../../SDL_internal.h"
|
||||
|
||||
#ifndef _SDL_x11window_h
|
||||
#define _SDL_x11window_h
|
||||
#ifndef SDL_x11window_h_
|
||||
#define SDL_x11window_h_
|
||||
|
||||
/* We need to queue the focus in/out changes because they may occur during
|
||||
video mode changes and we can respond to them by triggering more mode
|
||||
@@ -105,6 +105,6 @@ extern SDL_bool X11_GetWindowWMInfo(_THIS, SDL_Window * window,
|
||||
struct SDL_SysWMinfo *info);
|
||||
extern int X11_SetWindowHitTest(SDL_Window *window, SDL_bool enabled);
|
||||
|
||||
#endif /* _SDL_x11window_h */
|
||||
#endif /* SDL_x11window_h_ */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
*/
|
||||
#include "../../SDL_internal.h"
|
||||
|
||||
#ifndef _SDL_x11xinput2_h
|
||||
#define _SDL_x11xinput2_h
|
||||
#ifndef SDL_x11xinput2_h_
|
||||
#define SDL_x11xinput2_h_
|
||||
|
||||
#ifndef SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS
|
||||
/* Define XGenericEventCookie as forward declaration when
|
||||
@@ -37,6 +37,6 @@ extern int X11_Xinput2IsInitialized(void);
|
||||
extern int X11_Xinput2IsMultitouchSupported(void);
|
||||
extern void X11_Xinput2SelectTouch(_THIS, SDL_Window *window);
|
||||
|
||||
#endif /* _SDL_x11xinput2_h */
|
||||
#endif /* SDL_x11xinput2_h_ */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
||||
Reference in New Issue
Block a user