diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-06-26 15:31:15 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-06-26 15:31:15 +0000 |
commit | 81b4aca9340cc9738ae4e0640f7ec7766bdacf5e (patch) | |
tree | 000806d7196c22cf34be0c24c4979a74b03f0327 /tmux.h | |
parent | 63753735ec0ce0607cc7c34b677e2e5fb8faa6b6 (diff) | |
download | rtmux-81b4aca9340cc9738ae4e0640f7ec7766bdacf5e.tar.gz rtmux-81b4aca9340cc9738ae4e0640f7ec7766bdacf5e.tar.bz2 rtmux-81b4aca9340cc9738ae4e0640f7ec7766bdacf5e.zip |
#ifndef nitems.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |