raspberrypi / pico-sdk

BSD 3-Clause "New" or "Revised" License
3.66k stars 911 forks source link

Should we guard against including pico/platform.h #1664

Closed peterharperuk closed 1 month ago

peterharperuk commented 6 months ago

I've seen a couple of cases where code is including "pico/platform.h" which causes the wrong defines for pico_w. The right thing to do is include pico.h? Should we guard against this?

peterharperuk commented 1 month ago

This has been done - should throw an error.