[VS2010] Define strtoll() and atoll() functions
This commit is contained in:
		
							parent
							
								
									bf2c88b6d1
								
							
						
					
					
						commit
						a8018b8ee5
					
				@ -62,6 +62,18 @@ std::string to_string(const T& val) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if _MSC_VER < 1700
 | 
				
			||||||
 | 
					inline long long int strtoll (const char* str, char** endptr, int base)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  return _strtoi64(str, endptr, base); 
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					inline long long int atoll (const char* str)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  return strtoll(str, NULL, 10);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* windows only pragma */
 | 
					/* windows only pragma */
 | 
				
			||||||
#ifdef _MSC_VER
 | 
					#ifdef _MSC_VER
 | 
				
			||||||
    #pragma warning(disable : 4786) // Don't warn about too long identifiers
 | 
					    #pragma warning(disable : 4786) // Don't warn about too long identifiers
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user