mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb/Gamepad: Forward declare SDL components to fix Windows build
We have to prevent from including any SDL headers in LibWeb headers. Otherwise there will be transitive Windows.h includes that will re-declare some of our existing forward decls/defines in LibCore/SocketAddressWindows.h
This commit is contained in:
parent
5ce518f493
commit
454e6a6f7f
Notes:
github-actions[bot]
2025-09-02 10:12:35 +00:00
Author: https://github.com/ayeteadoe
Commit: 454e6a6f7f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6046
Reviewed-by: https://github.com/Lubrsi ✅
11 changed files with 39 additions and 17 deletions
|
|
@ -39,6 +39,7 @@
|
|||
#include <LibWeb/UIEvents/WheelEvent.h>
|
||||
|
||||
#include <SDL3/SDL_events.h>
|
||||
#include <SDL3/SDL_joystick.h>
|
||||
|
||||
namespace Web {
|
||||
|
||||
|
|
|
|||
|
|
@ -15,13 +15,12 @@
|
|||
#include <LibUnicode/Forward.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/Gamepad/SDLGamepadForward.h>
|
||||
#include <LibWeb/Page/EventResult.h>
|
||||
#include <LibWeb/Page/InputEvent.h>
|
||||
#include <LibWeb/PixelUnits.h>
|
||||
#include <LibWeb/UIEvents/KeyCode.h>
|
||||
|
||||
#include <SDL3/SDL_joystick.h>
|
||||
|
||||
namespace Web {
|
||||
|
||||
class WEB_API EventHandler {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue