Rev 1 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 8 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /* |
1 | /* |
2 | Simple DirectMedia Layer |
2 | Simple DirectMedia Layer |
3 | Copyright (C) 1997- |
3 | Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> |
4 | 4 | ||
5 | This software is provided 'as-is', without any express or implied |
5 | This software is provided 'as-is', without any express or implied |
6 | warranty. In no event will the authors be held liable for any damages |
6 | warranty. In no event will the authors be held liable for any damages |
7 | arising from the use of this software. |
7 | arising from the use of this software. |
8 | 8 | ||
Line 30... | Line 30... | ||
30 | 30 | ||
31 | #include "SDL_stdinc.h" |
31 | #include "SDL_stdinc.h" |
32 | #include "SDL_error.h" |
32 | #include "SDL_error.h" |
33 | #include "SDL_video.h" |
33 | #include "SDL_video.h" |
34 | #include "SDL_version.h" |
34 | #include "SDL_version.h" |
35 | - | ||
36 | #include "begin_code.h" |
- | |
37 | /* Set up for C function definitions, even when using C++ */ |
- | |
38 | #ifdef __cplusplus |
- | |
39 | extern "C" { |
- | |
40 | #endif |
- | |
41 | 35 | ||
42 | /** |
36 | /** |
43 | * \file SDL_syswm.h |
37 | * \file SDL_syswm.h |
44 | * |
38 | * |
45 | * Your application has access to a special type of event ::SDL_SYSWMEVENT, |
39 | * Your application has access to a special type of event ::SDL_SYSWMEVENT, |
Line 58... | Line 52... | ||
58 | #include <windows.h> |
52 | #include <windows.h> |
59 | #endif |
53 | #endif |
60 | 54 | ||
61 | #if defined(SDL_VIDEO_DRIVER_WINRT) |
55 | #if defined(SDL_VIDEO_DRIVER_WINRT) |
62 | #include <Inspectable.h> |
56 | #include <Inspectable.h> |
63 | #endif |
57 | #endif |
64 | 58 | ||
65 | /* This is the structure for custom window manager events */ |
59 | /* This is the structure for custom window manager events */ |
66 | #if defined(SDL_VIDEO_DRIVER_X11) |
60 | #if defined(SDL_VIDEO_DRIVER_X11) |
67 | #if defined(__APPLE__) && defined(__MACH__) |
61 | #if defined(__APPLE__) && defined(__MACH__) |
68 | /* conflicts with Quickdraw.h */ |
62 | /* conflicts with Quickdraw.h */ |
69 | #define Cursor X11Cursor |
63 | #define Cursor X11Cursor |
Line 86... | Line 80... | ||
86 | #if defined(SDL_VIDEO_DRIVER_COCOA) |
80 | #if defined(SDL_VIDEO_DRIVER_COCOA) |
87 | #ifdef __OBJC__ |
81 | #ifdef __OBJC__ |
88 | @class NSWindow; |
82 | @class NSWindow; |
89 | #else |
83 | #else |
90 | typedef struct _NSWindow NSWindow; |
84 | typedef struct _NSWindow NSWindow; |
91 | #endif |
85 | #endif |
92 | #endif |
86 | #endif |
93 | 87 | ||
94 | #if defined(SDL_VIDEO_DRIVER_UIKIT) |
88 | #if defined(SDL_VIDEO_DRIVER_UIKIT) |
95 | #ifdef __OBJC__ |
89 | #ifdef __OBJC__ |
96 | #include <UIKit/UIKit.h> |
90 | #include <UIKit/UIKit.h> |
97 | #else |
91 | #else |
Line 106... | Line 100... | ||
106 | typedef void *EGLSurface; |
100 | typedef void *EGLSurface; |
107 | #endif |
101 | #endif |
108 | 102 | ||
109 | #if defined(SDL_VIDEO_DRIVER_VIVANTE) |
103 | #if defined(SDL_VIDEO_DRIVER_VIVANTE) |
110 | #include "SDL_egl.h" |
104 | #include "SDL_egl.h" |
- | 105 | #endif |
|
- | 106 | ||
- | 107 | #include "begin_code.h" |
|
- | 108 | /* Set up for C function definitions, even when using C++ */ |
|
- | 109 | #ifdef __cplusplus |
|
- | 110 | extern "C" { |
|
111 | #endif |
111 | #endif |
112 | 112 | ||
113 | /** |
113 | /** |
114 | * These are the various supported windowing subsystems |
114 | * These are the various supported windowing subsystems |
115 | */ |
115 | */ |