GNU bug report logs - #46036
fails do build on macos 10.7

Previous Next

Package: emacs;

Reported by: Riccardo Mottola <riccardo.mottola <at> libero.it>

Date: Fri, 22 Jan 2021 14:58:01 UTC

Severity: normal

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Riccardo Mottola <riccardo.mottola <at> libero.it>, Alan Third <alan <at> idiocy.org>
Cc: 46036 <at> debbugs.gnu.org
Subject: bug#46036: fails do build on macos 10.7
Date: Sat, 30 Jan 2021 10:57:20 +0200
> Date: Fri, 22 Jan 2021 15:57:18 +0100
> From: Riccardo Mottola <riccardo.mottola <at> libero.it>
> 
> 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.

Alan, any comments on this?




This bug report was last modified 4 years and 111 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.