mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	#ifndef nitems to avoid redefining it if it is already in a header.
This commit is contained in:
		
							
								
								
									
										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)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user