X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FXIint.h;h=3ddc3c587002aa069f22ee9f3bf3369e21eeab86;hb=e16e37df0b93cb56c9b031e1bd75217f53597cd4;hp=be4eafb3ca06101a822a101b40522e4e15367de9;hpb=edcd69bf27bf3c3ddc1a8851c2e77a1a34c21039;p=platform%2Fupstream%2FlibXi.git diff --git a/src/XIint.h b/src/XIint.h index be4eafb..3ddc3c5 100644 --- a/src/XIint.h +++ b/src/XIint.h @@ -22,6 +22,7 @@ #endif #define XInput_2_1 8 #define XInput_2_2 9 +#define XInput_2_3 10 extern XExtDisplayInfo *XInput_find_display(Display *); @@ -82,4 +83,18 @@ next_block(void **ptr, int size) { return ret; } +#ifndef HAVE__XEATDATAWORDS +#include /* for LONG64 on 64-bit platforms */ +#include + +static inline void _XEatDataWords(Display *dpy, unsigned long n) +{ +# ifndef LONG64 + if (n >= (ULONG_MAX >> 2)) + _XIOError(dpy); +# endif + _XEatData (dpy, n << 2); +} +#endif + #endif