aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-06-26 15:31:15 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-06-26 15:31:15 +0000
commit81b4aca9340cc9738ae4e0640f7ec7766bdacf5e (patch)
tree000806d7196c22cf34be0c24c4979a74b03f0327 /tmux.h
parent63753735ec0ce0607cc7c34b677e2e5fb8faa6b6 (diff)
downloadrtmux-81b4aca9340cc9738ae4e0640f7ec7766bdacf5e.tar.gz
rtmux-81b4aca9340cc9738ae4e0640f7ec7766bdacf5e.tar.bz2
rtmux-81b4aca9340cc9738ae4e0640f7ec7766bdacf5e.zip
#ifndef nitems.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 53941da4..fdb649df 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.344 2009-06-25 17:02:59 nicm Exp $ */
+/* $Id $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -72,7 +72,9 @@ extern const char *__progname;
#define printflike5 __attribute__ ((format (printf, 5, 6)))
/* Number of items in array. */
+#ifndef nitems
#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
+#endif
/* Buffer macros. */
#define BUFFER_USED(b) ((b)->size)