Skip to content

Commit 8b73bae

Browse files
authored
Merge pull request #2078 from yunline/pgcompat
Remove out-dated macros
2 parents 9fdd47d + 42e9fd7 commit 8b73bae

File tree

1 file changed

+1
-69
lines changed

1 file changed

+1
-69
lines changed

src_c/include/pgcompat.h

Lines changed: 1 addition & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -29,75 +29,7 @@ typedef uint8_t Uint8;
2929
#define PG_GetTicks SDL_GetTicks64
3030
#else
3131
#define PG_GetTicks SDL_GetTicks
32-
#endif
33-
34-
#ifndef SDL_WINDOW_VULKAN
35-
#define SDL_WINDOW_VULKAN 0
36-
#endif
37-
38-
#ifndef SDL_WINDOW_ALWAYS_ON_TOP
39-
#define SDL_WINDOW_ALWAYS_ON_TOP 0
40-
#endif
41-
42-
#ifndef SDL_WINDOW_SKIP_TASKBAR
43-
#define SDL_WINDOW_SKIP_TASKBAR 0
44-
#endif
45-
46-
#ifndef SDL_WINDOW_UTILITY
47-
#define SDL_WINDOW_UTILITY 0
48-
#endif
49-
50-
#ifndef SDL_WINDOW_TOOLTIP
51-
#define SDL_WINDOW_TOOLTIP 0
52-
#endif
53-
54-
#ifndef SDL_WINDOW_POPUP_MENU
55-
#define SDL_WINDOW_POPUP_MENU 0
56-
#endif
57-
58-
#ifndef SDL_WINDOW_INPUT_GRABBED
59-
#define SDL_WINDOW_INPUT_GRABBED 0
60-
#endif
61-
62-
#ifndef SDL_WINDOW_INPUT_FOCUS
63-
#define SDL_WINDOW_INPUT_FOCUS 0
64-
#endif
65-
66-
#ifndef SDL_WINDOW_MOUSE_FOCUS
67-
#define SDL_WINDOW_MOUSE_FOCUS 0
68-
#endif
69-
70-
#ifndef SDL_WINDOW_FOREIGN
71-
#define SDL_WINDOW_FOREIGN 0
72-
#endif
73-
74-
#ifndef SDL_WINDOW_ALLOW_HIGHDPI
75-
#define SDL_WINDOW_ALLOW_HIGHDPI 0
76-
#endif
77-
78-
#ifndef SDL_WINDOW_MOUSE_CAPTURE
79-
#define SDL_WINDOW_MOUSE_CAPTURE 0
80-
#endif
81-
82-
#ifndef SDL_WINDOW_ALWAYS_ON_TOP
83-
#define SDL_WINDOW_ALWAYS_ON_TOP 0
84-
#endif
85-
86-
#ifndef SDL_WINDOW_SKIP_TASKBAR
87-
#define SDL_WINDOW_SKIP_TASKBAR 0
88-
#endif
89-
90-
#ifndef SDL_WINDOW_UTILITY
91-
#define SDL_WINDOW_UTILITY 0
92-
#endif
93-
94-
#ifndef SDL_WINDOW_TOOLTIP
95-
#define SDL_WINDOW_TOOLTIP 0
96-
#endif
97-
98-
#ifndef SDL_WINDOW_POPUP_MENU
99-
#define SDL_WINDOW_POPUP_MENU 0
100-
#endif
32+
#endif /* SDL_VERSION_ATLEAST(2, 0, 18) */
10133

10234
#ifndef SDL_MOUSEWHEEL_FLIPPED
10335
#define NO_SDL_MOUSEWHEEL_FLIPPED

0 commit comments

Comments
 (0)