Skip to content

Consistently include <math.h> with angle brackets#4794

Open
StephanTLavavej wants to merge 1 commit into
bulletphysics:masterfrom
StephanTLavavej:include-math.h-with-angle-brackets
Open

Consistently include <math.h> with angle brackets#4794
StephanTLavavej wants to merge 1 commit into
bulletphysics:masterfrom
StephanTLavavej:include-math.h-with-angle-brackets

Conversation

@StephanTLavavej

@StephanTLavavej StephanTLavavej commented Jun 15, 2026

Copy link
Copy Markdown

bullet3 almost always properly includes the Standard header math.h with angle brackets, but there are two lines that inconsistently use double quotes (which could pick up something in the local directory). This PR changes bullet3 to consistently use angle brackets.

(We found this for a complicated reason. I'm the primary maintainer of MSVC's STL, and I'm working with @Codiferous who's implementing constexpr <cmath> in the MSVC compiler. This involves "intercepting" inclusions of math.h but that only works with angle brackets. In any event, consistently using angle brackets is good for all compilers on all platforms, not just because of our weird reason.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant