mirror of
https://github.com/tmux/tmux.git
synced 2024-11-19 10:58:51 +00:00
#ifndef nitems to avoid redefining it if it is already in a header.
This commit is contained in:
parent
e8c10f5b34
commit
e225ce0fd7
2
tmux.h
2
tmux.h
@ -73,7 +73,9 @@ extern const char *__progname;
|
|||||||
#define printflike5 __attribute__ ((format (printf, 5, 6)))
|
#define printflike5 __attribute__ ((format (printf, 5, 6)))
|
||||||
|
|
||||||
/* Number of items in array. */
|
/* Number of items in array. */
|
||||||
|
#ifndef nitems
|
||||||
#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
|
#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Buffer macros. */
|
/* Buffer macros. */
|
||||||
#define BUFFER_USED(b) ((b)->size)
|
#define BUFFER_USED(b) ((b)->size)
|
||||||
|
Loading…
Reference in New Issue
Block a user