You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was going to submit a pr to rename _S in marshalls.cpp, but then I grepped for #define _[A-Z] and found that there are a lot of macros named like that across the tree.
(This also affects stuff in thirdparty, like oidn)
What's the opinion on this? Should we rename the macros as needed or try a bulk-rename?
Steps to reproduce
just try to compile Godot on a system whose headers defines _[A-Z] constants.
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered:
I missed that, I've only searched in this repository, thanks for the link. However, I still think this is a slightly different issues than that proposal.
I was also confused by the matches in thirdparty, there are only 25 of such defines in all the *.cpp files in the tree, and most of them seems easily replaceable. I'll try to come up with an initial pr at least for most simple ones.
Godot version
4.0.dev
System information
OpenBSD-CURRENT
Issue description
I've hit the following warning
this is because identifiers that starts with an underscore are reserved, and OpenBSD'
ctype.h
defines some_[A-Z]
constants.I was going to submit a pr to rename
_S
in marshalls.cpp, but then I grepped for#define _[A-Z]
and found that there are a lot of macros named like that across the tree.(This also affects stuff in thirdparty, like oidn)
What's the opinion on this? Should we rename the macros as needed or try a bulk-rename?
Steps to reproduce
just try to compile Godot on a system whose headers defines
_[A-Z]
constants.Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: