Fix: StackAllocator Undefined Reference fix (#5650)

Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com>
kimkulling/fuzzer_ply_out_of_bounds_access
Brad D 2024-07-03 03:05:58 -05:00 committed by GitHub
parent 7e053cc641
commit 625528d02c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -88,6 +88,11 @@ private:
} // namespace Assimp } // namespace Assimp
/// @brief Fixes an undefined reference error when linking in certain build environments.
// May throw warnings about needing stdc++17, but should compile without issues on modern compilers.
inline const size_t Assimp::StackAllocator::g_maxBytesPerBlock;
inline const size_t Assimp::StackAllocator::g_startBytesPerBlock;
#include "StackAllocator.inl" #include "StackAllocator.inl"
#endif // include guard #endif // include guard