emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unbreak build on macOS


From: Richard Copley
Subject: Re: Unbreak build on macOS
Date: Tue, 9 Jul 2019 14:51:16 +0100

On Tue, 9 Jul 2019 at 12:44, Mattias Engdegård <address@hidden> wrote:
On macOS, lib/fcntl.h does

#   define open rpl_open

which now (f8ab90839f) gets included in src/font.c and breaks the line

      font_object = driver_list->driver->open (f, entity, psize);

As an immediate remedy, I added

#undef open

to src/font.c.

In general, '#define open' is a rather unpleasant thing to do. Can we at least assume enough of C99 to do

#define open(...) rpl_open (__VA_ARGS__)

instead? That would permit font.c to use bracketing as an alternative countermeasure.

The build is currently (as of Mattias' fdea0e602b) broken on MS Windows. I didn't
check which recent revision introduced the breakage; possibly also f8ab90839f.

make[1]: Entering directory '/c/projects/emacs/src'
  CC       font.o
font.c: In function 'font_open_entity':
font.c:2909:40: error: 'const struct font_driver' has no member named 'open'
       font_object = driver_list->driver->open (f, entity, psize);
                                        ^~


reply via email to

[Prev in Thread] Current Thread [Next in Thread]