summaryrefslogtreecommitdiff
path: root/src/xcbint.h
diff options
context:
space:
mode:
authorJulien Danjou <julien@danjou.info>2009-04-07 11:55:30 +0200
committerJulien Danjou <julien@danjou.info>2009-04-10 09:59:49 +0200
commitf0b29819749b769e5a8d313bf1bab80d6513208b (patch)
tree14c1d223f1acdffaaffba9dc5a72335e546eca14 /src/xcbint.h
parent9f24c91f91dd68a52e46191b686283b0df38d2f5 (diff)
auth: use snprintf() return value
That save us from a strlen(). Signed-off-by: Julien Danjou <julien@danjou.info>
Diffstat (limited to 'src/xcbint.h')
-rw-r--r--src/xcbint.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xcbint.h b/src/xcbint.h
index dac0a61..154cca0 100644
--- a/src/xcbint.h
+++ b/src/xcbint.h
@@ -60,6 +60,10 @@ enum lazy_reply_tag
#define offsetof(type,member) ((size_t) &((type *)0)->member)
#endif
+#ifndef MIN
+#define MIN(x,y) ((x) < (y) ? (x) : (y))
+#endif
+
#define container_of(pointer,type,member) ((type *)(((char *)(pointer)) - offsetof(type, member)))
/* xcb_list.c */