diff --git a/include/SDL_syswm.h b/include/SDL_syswm.h index 2df9b8044..34bb0c05b 100644 --- a/include/SDL_syswm.h +++ b/include/SDL_syswm.h @@ -50,7 +50,7 @@ typedef struct SDL_SysWMinfo SDL_SysWMinfo; /* This is the structure for custom window manager events */ #if (defined(unix) || defined(__unix__) || defined(_AIX)) && \ - (defined(ENABLE_X11) && !defined(__CYGWIN32__)) + (!defined(DISABLE_X11) && !defined(__CYGWIN32__)) /* AIX is unix, of course, but the native compiler CSet doesn't define unix */ #include #include