Skip to content

Commit

Permalink
Change BLOCKHANDLER_ARGS's parameters
Browse files Browse the repository at this point in the history
to address a compilation failure since X server 1.19.0.
  • Loading branch information
gununu committed Jul 26, 2017
1 parent d852202 commit 0056a79
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/compat-api.h
Expand Up @@ -77,8 +77,16 @@

#define SCREEN_INIT_ARGS_DECL ScreenPtr pScreen, int argc, char **argv

#define BLOCKHANDLER_ARGS_DECL ScreenPtr arg, pointer pTimeout, pointer pReadmask
#define BLOCKHANDLER_ARGS arg, pTimeout, pReadmask
#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1,17,0,0,0)
#define BLOCKHANDLER_ARGS_DECL ScreenPtr arg, pointer pTimeout, pointer pReadmask
#define BLOCKHANDLER_ARGS arg, pTimeout, pReadmask
#elif XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1,19,0,0,0)
#define BLOCKHANDLER_ARGS_DECL ScreenPtr arg, void* pTimeout, void* pReadmask
#define BLOCKHANDLER_ARGS arg, pTimeout, pReadmask
#else
#define BLOCKHANDLER_ARGS_DECL ScreenPtr arg, void* pTimeout
#define BLOCKHANDLER_ARGS arg, pTimeout
#endif

#define CLOSE_SCREEN_ARGS_DECL ScreenPtr pScreen
#define CLOSE_SCREEN_ARGS pScreen
Expand Down

0 comments on commit 0056a79

Please sign in to comment.