Explorar o código

wayland: Check for both _WAYLAND_CLIENT_H and WAYLAND_CLIENT_H

Ethan Lee %!s(int64=5) %!d(string=hai) anos
pai
achega
cad67082f3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/video/wayland/SDL_waylanddyn.h

+ 1 - 1
src/video/wayland/SDL_waylanddyn.h

@@ -64,7 +64,7 @@ void SDL_WAYLAND_UnloadSymbols(void);
 
 #ifdef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC
 
-#ifdef _WAYLAND_CLIENT_H
+#if defined(_WAYLAND_CLIENT_H) || defined(WAYLAND_CLIENT_H)
 #error Do not include wayland-client ahead of SDL_waylanddyn.h in dynamic loading mode
 #endif