Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation for MSVC14. #5490

Merged
merged 1 commit into from
Mar 11, 2024
Merged

Fix compilation for MSVC14. #5490

merged 1 commit into from
Mar 11, 2024

Conversation

LukasBanana
Copy link
Contributor

@LukasBanana LukasBanana commented Mar 10, 2024

This PR fixes Assimp compilation for older compilers with lack of C++17 support such as MSVC14.

  • 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.

- 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.
Copy link
Member

@kimkulling kimkulling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine.

@kimkulling kimkulling merged commit 727774f into assimp:master Mar 11, 2024
8 checks passed
@kimkulling
Copy link
Member

Merged, thanks a lot for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants