Cleaned up headers and footers on Mir code.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 02 Feb 2014 23:54:10 -0500
changeset 8154 ea6b25de67b6
parent 8153 3e43c73ac79b
child 8155 cf0eda3f5e35
Cleaned up headers and footers on Mir code.
src/video/mir/SDL_mirevents.c
src/video/mir/SDL_mirevents.h
src/video/mir/SDL_mirframebuffer.c
src/video/mir/SDL_mirframebuffer.h
src/video/mir/SDL_mirmouse.c
src/video/mir/SDL_mirmouse.h
src/video/mir/SDL_miropengl.c
src/video/mir/SDL_miropengl.h
src/video/mir/SDL_mirvideo.c
src/video/mir/SDL_mirvideo.h
src/video/mir/SDL_mirwindow.c
src/video/mir/SDL_mirwindow.h
--- a/src/video/mir/SDL_mirevents.c	Sun Feb 02 23:41:46 2014 -0500
+++ b/src/video/mir/SDL_mirevents.c	Sun Feb 02 23:54:10 2014 -0500
@@ -23,7 +23,9 @@
   Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
 */
 
-#include "SDL_config.h"
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_DRIVER_MIR
 
 #include "../../events/SDL_events_c.h"
 #include "../../events/SDL_keyboard_c.h"
@@ -244,3 +246,7 @@
             break;
     }
 }
+
+#endif /* SDL_VIDEO_DRIVER_MIR */
+
+/* vi: set ts=4 sw=4 expandtab: */
--- a/src/video/mir/SDL_mirevents.h	Sun Feb 02 23:41:46 2014 -0500
+++ b/src/video/mir/SDL_mirevents.h	Sun Feb 02 23:54:10 2014 -0500
@@ -23,8 +23,6 @@
   Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
 */
 
-#include "SDL_config.h"
-
 #ifndef _SDL_mirevents_h
 #define _SDL_mirevents_h
 
@@ -34,3 +32,6 @@
 MIR_HandleInput(MirSurface* surface, MirEvent const* ev, void* context);
 
 #endif /* _SDL_mirevents_h */
+
+/* vi: set ts=4 sw=4 expandtab: */
+
--- a/src/video/mir/SDL_mirframebuffer.c	Sun Feb 02 23:41:46 2014 -0500
+++ b/src/video/mir/SDL_mirframebuffer.c	Sun Feb 02 23:54:10 2014 -0500
@@ -23,7 +23,10 @@
   Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
 */
 
-#include "SDL_config.h"
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_DRIVER_MIR
+
 #include "SDL_mirevents.h"
 #include "SDL_mirframebuffer.h"
 #include "SDL_mirwindow.h"
@@ -144,3 +147,7 @@
 MIR_DestroyWindowFramebuffer(_THIS, SDL_Window* window)
 {
 }
+
+#endif /* SDL_VIDEO_DRIVER_MIR */
+
+/* vi: set ts=4 sw=4 expandtab: */
--- a/src/video/mir/SDL_mirframebuffer.h	Sun Feb 02 23:41:46 2014 -0500
+++ b/src/video/mir/SDL_mirframebuffer.h	Sun Feb 02 23:54:10 2014 -0500
@@ -23,8 +23,6 @@
   Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
 */
 
-#include "SDL_config.h"
-
 #ifndef _SDL_mirframebuffer_h
 #define _SDL_mirframebuffer_h
 
@@ -44,3 +42,6 @@
 MIR_DestroyWindowFramebuffer(_THIS, SDL_Window* sdl_window);
 
 #endif /* _SDL_mirframebuffer_h */
+
+/* vi: set ts=4 sw=4 expandtab: */
+
--- a/src/video/mir/SDL_mirmouse.c	Sun Feb 02 23:41:46 2014 -0500
+++ b/src/video/mir/SDL_mirmouse.c	Sun Feb 02 23:54:10 2014 -0500
@@ -23,7 +23,9 @@
   Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
 */
 
-#include "SDL_config.h"
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_DRIVER_MIR
 
 #include "SDL_mirmouse.h"
 
@@ -143,3 +145,8 @@
     mouse->CreateSystemCursor   = NULL;
     mouse->SetRelativeMouseMode = NULL;
 }
+
+#endif /* SDL_VIDEO_DRIVER_MIR */
+
+/* vi: set ts=4 sw=4 expandtab: */
+
--- a/src/video/mir/SDL_mirmouse.h	Sun Feb 02 23:41:46 2014 -0500
+++ b/src/video/mir/SDL_mirmouse.h	Sun Feb 02 23:54:10 2014 -0500
@@ -23,8 +23,6 @@
   Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
 */
 
-#include "SDL_config.h"
-
 #ifndef _SDL_mirmouse_h
 #define _SDL_mirmouse_h
 
@@ -35,3 +33,5 @@
 MIR_FiniMouse();
 
 #endif /* _SDL_mirmouse_h */
+
+/* vi: set ts=4 sw=4 expandtab: */
--- a/src/video/mir/SDL_miropengl.c	Sun Feb 02 23:41:46 2014 -0500
+++ b/src/video/mir/SDL_miropengl.c	Sun Feb 02 23:54:10 2014 -0500
@@ -23,7 +23,10 @@
   Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
 */
 
-#include "SDL_config.h"
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_DRIVER_MIR
+
 #include "SDL_miropengl.h"
 
 #include <dlfcn.h>
@@ -120,3 +123,7 @@
 
     return proc_addr;
 }
+
+#endif /* SDL_VIDEO_DRIVER_MIR */
+
+/* vi: set ts=4 sw=4 expandtab: */
--- a/src/video/mir/SDL_miropengl.h	Sun Feb 02 23:41:46 2014 -0500
+++ b/src/video/mir/SDL_miropengl.h	Sun Feb 02 23:54:10 2014 -0500
@@ -23,8 +23,6 @@
   Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
 */
 
-#include "SDL_config.h"
-
 #ifndef _SDL_miropengl_h
 #define _SDL_miropengl_h
 
@@ -55,3 +53,6 @@
 MIR_GL_GetProcAddress(_THIS, const char* proc);
 
 #endif /* _SDL_miropengl_h */
+
+/* vi: set ts=4 sw=4 expandtab: */
+
--- a/src/video/mir/SDL_mirvideo.c	Sun Feb 02 23:41:46 2014 -0500
+++ b/src/video/mir/SDL_mirvideo.c	Sun Feb 02 23:54:10 2014 -0500
@@ -23,7 +23,10 @@
   Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
 */
 
-#include "SDL_config.h"
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_DRIVER_MIR
+
 #include "SDL_video.h"
 
 #include "SDL_mirframebuffer.h"
@@ -317,3 +320,8 @@
 {
     return 0;
 }
+
+#endif /* SDL_VIDEO_DRIVER_MIR */
+
+/* vi: set ts=4 sw=4 expandtab: */
+
--- a/src/video/mir/SDL_mirvideo.h	Sun Feb 02 23:41:46 2014 -0500
+++ b/src/video/mir/SDL_mirvideo.h	Sun Feb 02 23:54:10 2014 -0500
@@ -23,8 +23,6 @@
   Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
 */
 
-#include "SDL_config.h"
-
 #ifndef _SDL_mirvideo_h_
 #define _SDL_mirvideo_h_
 
@@ -34,7 +32,8 @@
 typedef struct
 {
     MirConnection* connection;
-
 } MIR_Data;
 
 #endif /* _SDL_mirvideo_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
--- a/src/video/mir/SDL_mirwindow.c	Sun Feb 02 23:41:46 2014 -0500
+++ b/src/video/mir/SDL_mirwindow.c	Sun Feb 02 23:54:10 2014 -0500
@@ -23,7 +23,9 @@
   Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
 */
 
-#include "SDL_config.h"
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_DRIVER_MIR
 
 #include "../SDL_egl_c.h"
 #include "../SDL_sysvideo.h"
@@ -214,3 +216,7 @@
 
     mir_surface_set_type(mir_window->surface, mir_surface_state_restored);
 }
+
+#endif /* SDL_VIDEO_DRIVER_MIR */
+
+/* vi: set ts=4 sw=4 expandtab: */
--- a/src/video/mir/SDL_mirwindow.h	Sun Feb 02 23:41:46 2014 -0500
+++ b/src/video/mir/SDL_mirwindow.h	Sun Feb 02 23:54:10 2014 -0500
@@ -23,8 +23,6 @@
   Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
 */
 
-#include "SDL_config.h"
-
 #ifndef _SDL_mirwindow_h
 #define _SDL_mirwindow_h
 
@@ -39,7 +37,6 @@
 
     MirSurface* surface;
     EGLSurface egl_surface;
-
 } MIR_Window;
 
 
@@ -67,3 +64,6 @@
 MIR_GetWindowWMInfo(_THIS, SDL_Window* window, SDL_SysWMinfo* info);
 
 #endif /* _SDL_mirwindow */
+
+/* vi: set ts=4 sw=4 expandtab: */
+