mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Use #if instead of #ifdef for wlroots config data
This prevents some annoying issues when e.g. not including wlr/config.h or making a typo in the guard name.
This commit is contained in:
		
							parent
							
								
									3181c4bec0
								
							
						
					
					
						commit
						51bfdd620e
					
				
					 25 changed files with 69 additions and 61 deletions
				
			
		| 
						 | 
				
			
			@ -7,7 +7,7 @@
 | 
			
		|||
#include <wlr/config.h>
 | 
			
		||||
#include <wlr/render/wlr_renderer.h>
 | 
			
		||||
#include <wlr/types/wlr_data_device.h>
 | 
			
		||||
#ifdef WLR_HAS_XWAYLAND
 | 
			
		||||
#if WLR_HAS_XWAYLAND
 | 
			
		||||
#include <wlr/xwayland.h>
 | 
			
		||||
#endif
 | 
			
		||||
#include "rootston/config.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue