all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Copley <rcopley@gmail.com>
To: "Mattias Engdegård" <mattiase@acm.org>
Cc: Paul Eggert <eggert@cs.ucla.edu>, Emacs developers <emacs-devel@gnu.org>
Subject: Re: Unbreak build on macOS
Date: Tue, 9 Jul 2019 14:51:16 +0100	[thread overview]
Message-ID: <CAPM58oiF8tmDTqeT1WwWTnpGxC4GOmS16XhJo=dLf=gtAj33Uw@mail.gmail.com> (raw)
In-Reply-To: <55EE5431-8EC2-4562-8F75-33151A0F086E@acm.org>

[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]

On Tue, 9 Jul 2019 at 12:44, Mattias Engdegård <mattiase@acm.org> 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);
                                        ^~

[-- Attachment #2: Type: text/html, Size: 1577 bytes --]

  reply	other threads:[~2019-07-09 13:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-09 11:41 Unbreak build on macOS Mattias Engdegård
2019-07-09 13:51 ` Richard Copley [this message]
2019-07-09 14:46   ` Mattias Engdegård
2019-07-09 15:29     ` Eli Zaretskii
2019-07-09 15:44       ` Mattias Engdegård
2019-07-09 16:08       ` Eli Zaretskii
2019-07-09 15:17   ` Eli Zaretskii
2019-07-09 15:30     ` Mattias Engdegård
2019-07-09 16:19       ` Eli Zaretskii
2019-07-09 16:49         ` Mattias Engdegård
2019-07-09 17:09           ` Eli Zaretskii
2019-07-09 20:20             ` Richard Copley
2019-07-09 15:05 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPM58oiF8tmDTqeT1WwWTnpGxC4GOmS16XhJo=dLf=gtAj33Uw@mail.gmail.com' \
    --to=rcopley@gmail.com \
    --cc=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    --cc=mattiase@acm.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.