unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#46036: fails do build on macos 10.7
@ 2021-01-22 14:57 Riccardo Mottola
  2021-01-30  8:57 ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Riccardo Mottola @ 2021-01-22 14:57 UTC (permalink / raw)
  To: 46036

Compilation of 27.1 yields:
nsfns.m:496:33: error: unexpected type name 'BOOL': expected expression
   NSNumber *isUbiquitousItem = @YES;
                                 ^
/usr/include/objc/objc.h:50:26: note: expanded from macro 'YES'
#define YES             (BOOL)1
                          ^

this code is guarded with MacOS 10.7, but the compiler doesn't like it.

It is as easy to write it old-style:
   NSNumber *isUbiquitousItem = [NSNumber numberWithBool:YES];

and emacs 27.1 happily running on Lion again.

Thanks






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

end of thread, other threads:[~2021-01-30 22:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-22 14:57 bug#46036: fails do build on macos 10.7 Riccardo Mottola
2021-01-30  8:57 ` Eli Zaretskii
2021-01-30 10:56   ` Alan Third
2021-01-30 12:05     ` Eli Zaretskii
2021-01-30 18:32       ` Riccardo Mottola
2021-01-30 18:34         ` Eli Zaretskii
2021-01-30 22:15           ` Alan Third

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).