mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-10-30 20:21:56 +00:00 
			
		
		
		
	[idd] helper: define WIN32_LEAN_AND_MEAN globally
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
				
			
		
			
				
	
				build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
				
			
		
			
				
	
				build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
				
			
		
			
				
	
				build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
				
			
		
			
				
	
				build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
				
			
		
			
				
	
				build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
				
			
		
			
				
	
				build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
				
			
		
			
				
	
				build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
				
			
		
			
				
	
				build / module (push) Has been cancelled
				
			
		
			
				
	
				build / host-linux (push) Has been cancelled
				
			
		
			
				
	
				build / host-windows-cross (push) Has been cancelled
				
			
		
			
				
	
				build / host-windows-native (push) Has been cancelled
				
			
		
			
				
	
				build / idd (push) Has been cancelled
				
			
		
			
				
	
				build / obs (clang) (push) Has been cancelled
				
			
		
			
				
	
				build / obs (gcc) (push) Has been cancelled
				
			
		
			
				
	
				build / docs (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
				
			build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
				
			build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
				
			build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
				
			build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
				
			build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
				
			build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
				
			build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
				
			build / module (push) Has been cancelled
				
			build / host-linux (push) Has been cancelled
				
			build / host-windows-cross (push) Has been cancelled
				
			build / host-windows-native (push) Has been cancelled
				
			build / idd (push) Has been cancelled
				
			build / obs (clang) (push) Has been cancelled
				
			build / obs (gcc) (push) Has been cancelled
				
			build / docs (push) Has been cancelled
				
			It doesn't really help that much, but since we are defining it in some headers, we might as well do it everywhere so it actually has some effect in case the headers were included in a different order.
This commit is contained in:
		| @@ -1,6 +1,5 @@ | ||||
| #pragma once | ||||
|  | ||||
| #define WIN32_LEAN_AND_MEAN | ||||
| #include <windows.h> | ||||
|  | ||||
| class CWidget { | ||||
|   | ||||
| @@ -1,6 +1,5 @@ | ||||
| #pragma once | ||||
|  | ||||
| #define WIN32_LEAN_AND_MEAN | ||||
| #include <windows.h> | ||||
| #include <shellapi.h> | ||||
|  | ||||
|   | ||||
| @@ -75,7 +75,7 @@ | ||||
|     <ClCompile> | ||||
|       <WarningLevel>Level3</WarningLevel> | ||||
|       <SDLCheck>true</SDLCheck> | ||||
|       <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <ConformanceMode>true</ConformanceMode> | ||||
|       <AdditionalIncludeDirectories>$(SolutionDir)LGCommon;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||||
|     </ClCompile> | ||||
| @@ -99,7 +99,7 @@ copy /Y "$(ProjectDir)VERSION" "$(SolutionDir)$(Platform)\$(Configuration)\LGIdd | ||||
|       <FunctionLevelLinking>true</FunctionLevelLinking> | ||||
|       <IntrinsicFunctions>true</IntrinsicFunctions> | ||||
|       <SDLCheck>true</SDLCheck> | ||||
|       <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <ConformanceMode>true</ConformanceMode> | ||||
|       <AdditionalIncludeDirectories>$(SolutionDir)LGCommon;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||||
|     </ClCompile> | ||||
| @@ -123,7 +123,7 @@ copy /Y "$(ProjectDir)VERSION" "$(SolutionDir)$(Platform)\$(Configuration)\LGIdd | ||||
|     <ClCompile> | ||||
|       <WarningLevel>Level3</WarningLevel> | ||||
|       <SDLCheck>true</SDLCheck> | ||||
|       <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <PreprocessorDefinitions>_DEBUG;_CONSOLE;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <ConformanceMode>true</ConformanceMode> | ||||
|       <LanguageStandard>Default</LanguageStandard> | ||||
|       <LanguageStandard_C>Default</LanguageStandard_C> | ||||
| @@ -151,7 +151,7 @@ copy /Y "$(ProjectDir)VERSION" "$(SolutionDir)$(Platform)\$(Configuration)\LGIdd | ||||
|       <FunctionLevelLinking>true</FunctionLevelLinking> | ||||
|       <IntrinsicFunctions>true</IntrinsicFunctions> | ||||
|       <SDLCheck>true</SDLCheck> | ||||
|       <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <PreprocessorDefinitions>NDEBUG;_CONSOLE;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <ConformanceMode>true</ConformanceMode> | ||||
|       <LanguageStandard>Default</LanguageStandard> | ||||
|       <LanguageStandard_C>Default</LanguageStandard_C> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Quantum
					Quantum