Header inclusion cleanup.

This commit is contained in:
Camilla Berglund 2015-05-27 15:06:52 +02:00
parent 287e30239c
commit 38ae319bea
7 changed files with 16 additions and 27 deletions

View File

@ -27,7 +27,6 @@
#ifndef _cocoa_platform_h_ #ifndef _cocoa_platform_h_
#define _cocoa_platform_h_ #define _cocoa_platform_h_
#include <stdint.h> #include <stdint.h>
#if defined(__OBJC__) #if defined(__OBJC__)
@ -38,15 +37,14 @@ typedef void* id;
#endif #endif
#include "posix_tls.h" #include "posix_tls.h"
#include "iokit_joystick.h"
#if defined(_GLFW_NSGL) #if defined(_GLFW_NSGL)
#include "nsgl_context.h" #include "nsgl_context.h"
#else #else
#error "No supported context creation API selected" #error "The Cocoa backend depends on NSGL platform support"
#endif #endif
#include "iokit_joystick.h"
#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowNS ns #define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowNS ns
#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryNS ns #define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryNS ns
#define _GLFW_PLATFORM_LIBRARY_TIME_STATE _GLFWtimeNS ns_time #define _GLFW_PLATFORM_LIBRARY_TIME_STATE _GLFWtimeNS ns_time

View File

@ -27,15 +27,15 @@
#ifndef _mir_platform_h_ #ifndef _mir_platform_h_
#define _mir_platform_h_ #define _mir_platform_h_
#include <sys/queue.h>
#include <pthread.h>
#include <mir_toolkit/mir_client_library.h> #include <mir_toolkit/mir_client_library.h>
#include "posix_tls.h" #include "posix_tls.h"
#include "posix_time.h" #include "posix_time.h"
#include "linux_joystick.h" #include "linux_joystick.h"
#include "xkb_unicode.h"
#include <sys/queue.h>
#include <pthread.h>
#if defined(_GLFW_EGL) #if defined(_GLFW_EGL)
#include "egl_context.h" #include "egl_context.h"
@ -51,6 +51,7 @@
#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryMir mir #define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryMir mir
#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorMir mir #define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorMir mir
// Mir-specific Event Queue // Mir-specific Event Queue
// //
typedef struct EventQueue typedef struct EventQueue

View File

@ -25,7 +25,6 @@
//======================================================================== //========================================================================
#include "internal.h" #include "internal.h"
#include "xkb_unicode.h"
#include <linux/input.h> #include <linux/input.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -28,7 +28,6 @@
#ifndef _win32_platform_h_ #ifndef _win32_platform_h_
#define _win32_platform_h_ #define _win32_platform_h_
// We don't need all the fancy stuff // We don't need all the fancy stuff
#ifndef NOMINMAX #ifndef NOMINMAX
#define NOMINMAX #define NOMINMAX
@ -71,9 +70,7 @@
#define strdup _strdup #define strdup _strdup
#endif #endif
// HACK: Define macros that some older windows.h variants don't // HACK: Define macros that some older windows.h variants don't
#ifndef WM_MOUSEHWHEEL #ifndef WM_MOUSEHWHEEL
#define WM_MOUSEHWHEEL 0x020E #define WM_MOUSEHWHEEL 0x020E
#endif #endif
@ -102,7 +99,6 @@ typedef struct tagCHANGEFILTERSTRUCT
#endif #endif
#endif /*Windows 7*/ #endif /*Windows 7*/
// winmm.dll function pointer typedefs // winmm.dll function pointer typedefs
typedef MMRESULT (WINAPI * JOYGETDEVCAPS_T)(UINT,LPJOYCAPS,UINT); typedef MMRESULT (WINAPI * JOYGETDEVCAPS_T)(UINT,LPJOYCAPS,UINT);
typedef MMRESULT (WINAPI * JOYGETPOS_T)(UINT,LPJOYINFO); typedef MMRESULT (WINAPI * JOYGETPOS_T)(UINT,LPJOYINFO);
@ -125,13 +121,12 @@ typedef HRESULT (WINAPI * DWMFLUSH_T)(VOID);
#define _glfw_DwmIsCompositionEnabled _glfw.win32.dwmapi.DwmIsCompositionEnabled #define _glfw_DwmIsCompositionEnabled _glfw.win32.dwmapi.DwmIsCompositionEnabled
#define _glfw_DwmFlush _glfw.win32.dwmapi.DwmFlush #define _glfw_DwmFlush _glfw.win32.dwmapi.DwmFlush
#define _GLFW_RECREATION_NOT_NEEDED 0 #define _GLFW_RECREATION_NOT_NEEDED 0
#define _GLFW_RECREATION_REQUIRED 1 #define _GLFW_RECREATION_REQUIRED 1
#define _GLFW_RECREATION_IMPOSSIBLE 2 #define _GLFW_RECREATION_IMPOSSIBLE 2
#include "win32_tls.h" #include "win32_tls.h"
#include "winmm_joystick.h"
#if defined(_GLFW_WGL) #if defined(_GLFW_WGL)
#include "wgl_context.h" #include "wgl_context.h"
@ -143,8 +138,6 @@ typedef HRESULT (WINAPI * DWMFLUSH_T)(VOID);
#error "No supported context creation API selected" #error "No supported context creation API selected"
#endif #endif
#include "winmm_joystick.h"
#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowWin32 win32 #define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowWin32 win32
#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryWin32 win32 #define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryWin32 win32
#define _GLFW_PLATFORM_LIBRARY_TIME_STATE _GLFWtimeWin32 win32_time #define _GLFW_PLATFORM_LIBRARY_TIME_STATE _GLFWtimeWin32 win32_time

View File

@ -35,7 +35,6 @@
#include <wayland-client.h> #include <wayland-client.h>
#include <wayland-cursor.h> #include <wayland-cursor.h>
#include "xkb_unicode.h"
static void pointerHandleEnter(void* data, static void pointerHandleEnter(void* data,
struct wl_pointer* pointer, struct wl_pointer* pointer,

View File

@ -27,20 +27,20 @@
#ifndef _wayland_platform_h_ #ifndef _wayland_platform_h_
#define _wayland_platform_h_ #define _wayland_platform_h_
#include <wayland-client.h> #include <wayland-client.h>
#include <xkbcommon/xkbcommon.h> #include <xkbcommon/xkbcommon.h>
#include "posix_tls.h"
#include "posix_time.h"
#include "linux_joystick.h"
#include "xkb_unicode.h"
#if defined(_GLFW_EGL) #if defined(_GLFW_EGL)
#include "egl_context.h" #include "egl_context.h"
#else #else
#error "The Wayland backend depends on EGL platform support" #error "The Wayland backend depends on EGL platform support"
#endif #endif
#include "posix_tls.h"
#include "posix_time.h"
#include "linux_joystick.h"
#define _GLFW_EGL_NATIVE_WINDOW window->wl.native #define _GLFW_EGL_NATIVE_WINDOW window->wl.native
#define _GLFW_EGL_NATIVE_DISPLAY _glfw.wl.display #define _GLFW_EGL_NATIVE_DISPLAY _glfw.wl.display

View File

@ -57,6 +57,9 @@
#endif #endif
#include "posix_tls.h" #include "posix_tls.h"
#include "posix_time.h"
#include "linux_joystick.h"
#include "xkb_unicode.h"
#if defined(_GLFW_GLX) #if defined(_GLFW_GLX)
#define _GLFW_X11_CONTEXT_VISUAL window->glx.visual #define _GLFW_X11_CONTEXT_VISUAL window->glx.visual
@ -70,10 +73,6 @@
#error "No supported context creation API selected" #error "No supported context creation API selected"
#endif #endif
#include "posix_time.h"
#include "linux_joystick.h"
#include "xkb_unicode.h"
#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowX11 x11 #define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowX11 x11
#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryX11 x11 #define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryX11 x11
#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorX11 x11 #define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorX11 x11