mirror of
https://github.com/tmux/tmux.git
synced 2025-09-06 00:37:06 +00:00
#ifndef nitems.
This commit is contained in:
4
tmux.h
4
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)
|
||||
|
Reference in New Issue
Block a user