Backported from https://github.com/nothings/stb/pull/989. Fixes #40164. (cherry picked from commit 24a01c0d39)
24a01c0d39
tools=no