Fix compilation for MSVC14. (#5490)
- std::min/max were not defined in StackAllocator.inl; Also added explicit template arguments to break macro expansion if Windows.h is included prior and NOMINMAX macro is not present. - Made static_assert statements compatible with C++11 in ProcessHelper.cpp. - Removed unused string_view include in ObjFileParser.cpp.
This commit is contained in:
@@ -177,8 +177,8 @@ unsigned int GetMeshVFormatUnique(const aiMesh *pcMesh) {
|
||||
if (pcMesh->HasTangentsAndBitangents()) iRet |= 0x4;
|
||||
|
||||
|
||||
static_assert(8 >= AI_MAX_NUMBER_OF_COLOR_SETS);
|
||||
static_assert(8 >= AI_MAX_NUMBER_OF_TEXTURECOORDS);
|
||||
static_assert(8 >= AI_MAX_NUMBER_OF_COLOR_SETS, "static_assert(8 >= AI_MAX_NUMBER_OF_COLOR_SETS)");
|
||||
static_assert(8 >= AI_MAX_NUMBER_OF_TEXTURECOORDS, "static_assert(8 >= AI_MAX_NUMBER_OF_TEXTURECOORDS)");
|
||||
|
||||
// texture coordinates
|
||||
unsigned int p = 0;
|
||||
|
||||
Reference in New Issue
Block a user