On Sat, Dec 09, 2017 at 03:49:08PM -0500, Glenn Morris wrote: > Charles A. Roelli wrote: > > > The FSF GCC does not support Objective-C "blocks" (that is, the > > statements inside "^{...}" [1]). On an old macOS, you need to use the > > compiler that Apple used to ship (an extended version of FSF GCC that > > does support blocks), or, if you're brave, try to compile "clang" and > > use that. > > > > Maybe it would be possible to remove the blocks from macfont.m and to > > use an equivalent. > > Interesting. > > https://en.wikipedia.org/wiki/Blocks_(C_language_extension) > > Blocks are a non-standard extension added by Apple Inc. to Clang's > implementations of the C, C++, and Objective-C programming languages > > I would think removing this feature from the Emacs sources so that > they compile with standard gcc would be a high priority for Emacs. > It's surpising this has not come up before. I suspect that very few people on macOS have bothered trying to build with GCC. It looks as though the blocks are there to improve performance. I’ve tried removing them and don’t immediately see any problems, but maybe I’m not looking in the right places. -- Alan Third