-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
OS.h Defines for min and max break c++ compilation (IDFGH-14017) #14840
Comments
Hi @kenozz-igs , |
Hi @ESPAbhinav thanks for the quick response. I can confirm the patch does resolve the build issue. Is there any plans to merge into the 5.3 release? |
Hi @kenozz-igs , already raised the MR to merge this change into release 5.3 .Thanks for identifying the issue. |
Answers checklist.
IDF version.
v5.3.1-638-ga0f798cfc4
Operating System used.
macOS
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
What is the expected behavior?
C++ build successful when nimble is enabled.
What is the actual behavior?
Cannot build project due to defines for min and max. Release/5.2 builds OK, Release/5.3 does not. Defines for min and max in os.h in 5.3 are the issue. 5.2 had a commit 155931f to remove them but looks to have been re-introducted in 5.3 commit fd31133.
5.2 - https://github.com/espressif/esp-nimble/blob/e08302d66d77a29e65dffe2c336e4dcda4e80e51/porting/nimble/include/os/os.h
5.3 - https://github.com/espressif/esp-nimble/blob/32b2124f54238e70ecd4c72a753698babdd939f7/porting/nimble/include/os/os.h
Steps to reproduce.
Bulid C++ project with Nimble and compiler error is observed.
Build or installation Logs.
No response
More Information.
Looks to be same issue as in ticket
The text was updated successfully, but these errors were encountered: