-
Notifications
You must be signed in to change notification settings - Fork 3
change include directives to use double quotes #2
Conversation
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.
LGTM 👍 Thank you @LuanVSO 🚀
For future reference, I think this change was needed to ensure that this library always includes its own files, rather than the AVr core files. This is particularly the case for the |
I also wonder if this is really the right fix. Even with this applied, I'm still seeing compilation errors:
This is with a fairly complex sketch, but I would expect the same thing to happen with a simpler sketch too. I wonder if it would not be better for this library to simply use the AVR-provided if it is present, or revert to its own version of when the AVR core does not provide it. I thought this could be done by reverting this PR, and appling the second suggestions from mike-matera/ArduinoSTL#56 (comment) to fix the More generally, there is more new-related stuff between the AVR core and this library's .cpp files (i.e. it's not just a matter of header conflicts). In practice, it seems it's only the Ideally, you would just sort this using preprocessor directives (are already some checks for One workaround would be to I've gone ahead and implemented my suggested approach, which seems to work. I haven't done extensive testing, though, so testing is very welcome. PR is here: #8 |
this will close #1
did this with the following regex substitution + manual pruning of some files.
after these changes i was successfully able to compile a sketch with the following includes: