-
-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build strclr and strreplacechar when enabling newlib #157
Conversation
Pushed another commit that fixes implicit declarations of functions removed when defining ENABLE_NEWLIB 1. This happens for example when:
The fix uses |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does #include_next exactly does ?
Also is it possible to keep STRING_H by default for SGDK and just replace it with SGDK_STRING_H if NEWLIB is used ? I think it would be better.
So, in this case, for example, my application does I can make the change to the include guards to keep the Thanks for review! |
Done! (forced pushed). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ready to be merged 👍
I want to add you as author of this unit, you can do it yourself by modifying the unit header but i can also do it (to avoid you modifying again just for that) in which case i need to know how you want your name to appear :)
Thanks! I usually write "Jesús Alonso (doragasu)" If you prefer avoiding non-english characters, you can use "Jesus Alonso (doragasu)" |
Ok perfect, i will use the non-english characters version if you don't mind :) |
These functions are not part of the C standard library (and not included in newlib) and thus must be built when newlib is enabled. Otherwise the library fails to build because of these symbols missing.
I have just moved them out of the
#if (ENABLE_NEWLIB == 0)
blocks.