mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	proplist-util: fix compilation on Windows without NLS
Under MinGW, LC_MESSAGES is defined in libint.h which is not included when pulseaudio is configured with nls disabled. LC_MESSAGES is referenced when setting PA_PROP_APPLICATION_LANGUAGE. This patch just disables setting that property when ENABLE_NLS is not defined.
This commit is contained in:
		
							parent
							
								
									5c7b543cb7
								
							
						
					
					
						commit
						79ee19bb51
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -207,12 +207,14 @@ void pa_init_proplist(pa_proplist *p) {
 | 
			
		|||
            pa_proplist_sets(p, PA_PROP_APPLICATION_NAME, t);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
#ifdef ENABLE_NLS
 | 
			
		||||
    if (!pa_proplist_contains(p, PA_PROP_APPLICATION_LANGUAGE)) {
 | 
			
		||||
        const char *l;
 | 
			
		||||
 | 
			
		||||
        if ((l = setlocale(LC_MESSAGES, NULL)))
 | 
			
		||||
            pa_proplist_sets(p, PA_PROP_APPLICATION_LANGUAGE, l);
 | 
			
		||||
    }
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
    if (!pa_proplist_contains(p, PA_PROP_WINDOW_X11_DISPLAY)) {
 | 
			
		||||
        const char *t;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue