mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-10-29 05:40:23 -04:00 
			
		
		
		
	win32: define WIN32_LEAN_AND_MEAN
This makes windows.h include less headers. Otherwise boolean is typedef'ed and that clashes with libjson.
This commit is contained in:
		
							parent
							
								
									6fd2ef48dd
								
							
						
					
					
						commit
						fc0eebf2c4
					
				
					 2 changed files with 4 additions and 0 deletions
				
			
		|  | @ -91,6 +91,9 @@ case $host in | |||
|    *-*-darwin* ) | ||||
|       AC_DEFINE([_DARWIN_C_SOURCE], [200112L], [Needed to get NSIG on Mac OS X]) | ||||
|       ;; | ||||
|    *-*-mingw* ) | ||||
|       AC_DEFINE([WIN32_LEAN_AND_MEAN], 1, [Needed to avoid including unnecessary headers]) | ||||
|       ;; | ||||
| esac | ||||
| 
 | ||||
| # M4 | ||||
|  |  | |||
|  | @ -30,6 +30,7 @@ | |||
| #include <string.h> | ||||
| 
 | ||||
| #include <windows.h> | ||||
| #include <winsock2.h> | ||||
| 
 | ||||
| extern pa_win32_get_toplevel(HANDLE handle); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Maarten Bosmans
						Maarten Bosmans