diff options
Diffstat (limited to 'dist/libxcb/src/xcbint.h')
-rw-r--r-- | dist/libxcb/src/xcbint.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/dist/libxcb/src/xcbint.h b/dist/libxcb/src/xcbint.h index cef9821a8..235c8481a 100644 --- a/dist/libxcb/src/xcbint.h +++ b/dist/libxcb/src/xcbint.h @@ -38,6 +38,16 @@ #pragma GCC visibility push(hidden) #endif +#ifndef __has_attribute +# define __has_attribute(x) 0 /* Compatibility with older compilers. */ +#endif + +#if __has_attribute(fallthrough) +# define XCB_ALLOW_FALLTHRU __attribute__ ((fallthrough)); +#else +# define XCB_ALLOW_FALLTHRU /* FALLTHRU */ +#endif + enum workarounds { WORKAROUND_NONE, WORKAROUND_GLX_GET_FB_CONFIGS_BUG, @@ -73,8 +83,8 @@ typedef struct _xcb_map _xcb_map; _xcb_map *_xcb_map_new(void); void _xcb_map_delete(_xcb_map *q, xcb_list_free_func_t do_free); -int _xcb_map_put(_xcb_map *q, unsigned int key, void *data); -void *_xcb_map_remove(_xcb_map *q, unsigned int key); +int _xcb_map_put(_xcb_map *q, uint64_t key, void *data); +void *_xcb_map_remove(_xcb_map *q, uint64_t key); /* xcb_out.c */ @@ -103,6 +113,7 @@ typedef struct _xcb_out { uint64_t request; uint64_t request_written; + uint64_t request_expected_written; uint64_t total_written; pthread_mutex_t reqlenlock; |