OK, problem solved. Proved to be simpler than I though: there was a
stray alplatf.h in include/allegro5/platform/, generated by the (now
gone) XCode project file. I don't know why that didn't cause me any
problems before... but all seems well again now that I deleted it.