stan-dev / stanc3

The Stan transpiler (from Stan to C++ and beyond).
BSD 3-Clause "New" or "Revised" License
140 stars 44 forks source link

Add certain system-specific macros to backend name mangling #1429

Closed WardBrian closed 4 months ago

WardBrian commented 4 months ago

See https://discourse.mc-stan.org/t/mac-compilation-error/35282/3

I went ahead and scanned through https://github.com/cpredef/predef for any other macros from systems we could possible compile on that didn't start with _, and added those as well.

Submission Checklist

Release notes

Fixed an issue where certain variable names would end up conflicting with system-specific macros in the generated C++.

Copyright and Licensing

By submitting this pull request, the copyright holder is agreeing to license the submitted work under the BSD 3-clause license (https://opensource.org/licenses/BSD-3-Clause)