Fix macOS compilation (#384)

Disable X11 on macOS, I don't know why it's enabled
This commit is contained in:
Jérôme Leclercq
2022-11-19 13:37:42 +01:00
committed by GitHub
parent 5ca2cf9320
commit 082015a0c5
4 changed files with 13 additions and 10 deletions

View File

@@ -13,6 +13,13 @@
#include <Nazara/Platform/SDL2/SDLHelper.hpp>
#include <Nazara/Utility/Image.hpp>
#include <SDL.h>
#ifdef NAZARA_PLATFORM_MACOS
// I'm not sure why, but SDL_VIDEO_DRIVER_X11 is automatically defined here by SDL_config.h
// This is problematic as it requires X11/X.h which is not present (adding libxext/libx11/xorgproto packages didn't help)
#undef SDL_VIDEO_DRIVER_X11
#endif
#include <SDL_syswm.h>
#include <Utfcpp/utf8.h>
#include <cstdio>