DanielChappuis / reactphysics3d

Open source C++ physics engine library in 3D
http://www.reactphysics3d.com
zlib License
1.54k stars 224 forks source link

feat: Don't recursively include files. #360

Closed edvn0 closed 9 months ago

edvn0 commented 1 year ago

I could not get this to compile on clang17 (with pretty permissive compile flags). It worked on MSVC though, quite strange that MSVC allows this behaviour, but I digress.

I forward declare the pair and include for the std::*_t definitions required for the library.

This has not been tested on other compilers or toolchains except for MSVC (cl.exe: Microsoft (R) C/C++ Optimizing Compiler Version 19.37.32824 for x64).

This allows for compilation on clang17.0.3.