mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-28 08:31:25 +00:00 
			
		
		
		
	Fixed possible macro redefinition (#1892)
MinGW libstdc++ may define `NOMINMAX` unconditionally. This fixes the case when it is already defined.
This commit is contained in:
		| @@ -23,7 +23,9 @@ | |||||||
| #include <unistd.h> | #include <unistd.h> | ||||||
| #elif defined (_WIN32) | #elif defined (_WIN32) | ||||||
| #define WIN32_LEAN_AND_MEAN | #define WIN32_LEAN_AND_MEAN | ||||||
|  | #ifndef NOMINMAX | ||||||
| #define NOMINMAX | #define NOMINMAX | ||||||
|  | #endif | ||||||
| #include <windows.h> | #include <windows.h> | ||||||
| #include <signal.h> | #include <signal.h> | ||||||
| #endif | #endif | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 FrankHB
					FrankHB