Check if _MSC_VER is defined before using.
Fixes compilation errors on some platforms.
This commit is contained in:
		
							parent
							
								
									ef807f4bc5
								
							
						
					
					
						commit
						8b2f96d3fe
					
				| @ -45,7 +45,7 @@ namespace spv { | ||||
| 
 | ||||
| // MSVC defines __cplusplus as an older value, even when it supports almost all of 11.
 | ||||
| // We handle that here by making our own symbol.
 | ||||
| #if __cplusplus >= 201103L || _MSC_VER >= 1700 | ||||
| #if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1700) | ||||
| #   define use_cpp11 1 | ||||
| #endif | ||||
| 
 | ||||
|  | ||||
| @ -38,7 +38,7 @@ | ||||
| #define _COMMON_INCLUDED_ | ||||
| 
 | ||||
| 
 | ||||
| #if defined(__ANDROID__) || _MSC_VER < 1700 | ||||
| #if defined(__ANDROID__) || (defined(_MSC_VER) && _MSC_VER < 1700) | ||||
| #include <sstream> | ||||
| namespace std { | ||||
| template<typename T> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Daniel Koch
						Daniel Koch