all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Unbreak build on macOS
@ 2019-07-09 11:41 Mattias Engdegård
  2019-07-09 13:51 ` Richard Copley
  2019-07-09 15:05 ` Eli Zaretskii
  0 siblings, 2 replies; 13+ messages in thread
From: Mattias Engdegård @ 2019-07-09 11:41 UTC (permalink / raw)
  To: Emacs developers, Paul Eggert

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.




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-07-09 20:20 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-09 11:41 Unbreak build on macOS Mattias Engdegård
2019-07-09 13:51 ` Richard Copley
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

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.