projects
/
profile
/
ivi
/
libxcb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Switch sequence comparisons to handle 32-bit sequence number wrap.
[profile/ivi/libxcb.git]
/
src
/
xcbint.h
diff --git
a/src/xcbint.h
b/src/xcbint.h
index
a6d92aa
..
9048e9d
100644
(file)
--- a/
src/xcbint.h
+++ b/
src/xcbint.h
@@
-43,6
+43,8
@@
enum workarounds {
#define XCB_PAD(i) (-(i) & 3)
+#define XCB_SEQUENCE_COMPARE(a,op,b) ((int) ((a) - (b)) op 0)
+
/* xcb_list.c */
typedef void (*XCBListFreeFunc)(void *);