-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG] is_power_of_2 of nuttx conflict #13757
Comments
I had similar using LVGL (with the OS set to NuttX) also down to a conflict with a math32 function. I raised an issue on LVGL here The proposal there was to rename. I originally thought that it was incorrect use of Should this NuttX library have "proper" static functions not #defines for these? All a bit beyond my 2immediately to hand" experience so relying on a bit of Googling to refresh my aging memory, but surely there shouldn't be such library conflicts? |
@GUIDINGLI look at this problem. |
Also, [BUG] Compile warning due to __CONCAT redefinition #13562 is possibly related given the prevalence of #define functions/helpers in NuttX? |
How about this: |
Resolve, see the comments above. |
Description / Steps to reproduce the issue
The compilation of botan with nuttx fails. It comes with the redefinition of is_power_of_2 function : declared in botan AND in nuttx int math32.h.
Here's the error with the chain of includes.
From what I understand, the nuttx libc shouldn't defined public functions outside of the one defines by the libc standard.
Any ideas how can we fix that ?
On which OS does this issue occur?
[OS: Linux]
What is the version of your OS?
Ubuntu 22
NuttX Version
master
Issue Architecture
[Arch: all]
Issue Area
[Area: Other]
Verification
The text was updated successfully, but these errors were encountered: