bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/28106] Build of 2.37 fails on FreeBSD and Clang


From: yasu at utahime dot org
Subject: [Bug gold/28106] Build of 2.37 fails on FreeBSD and Clang
Date: Tue, 20 Jul 2021 00:42:04 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28106

--- Comment #3 from yasu at utahime dot org ---
(In reply to Alan Modra from comment #1)

> Are your headers defining NULL as nullptr?

It seems so. I found following definitions in /usr/include/sys/_null.h, which
is included from standard header files such as stdio.h, stdlib, string.h, etc.

----------------------------------------------------------------------
#ifndef NULL

#if !defined(__cplusplus)
#define NULL    ((void *)0)
#else
#if __cplusplus >= 201103L
#define NULL    nullptr
#elif defined(__GNUG__) && defined(__GNUC__) && __GNUC__ >= 4
#define NULL    __null
#else
#if defined(__LP64__)
#define NULL    (0L)
#else
#define NULL    0
#endif  /* __LP64__ */
#endif  /* __GNUG__ */
#endif  /* !__cplusplus */

#endif
----------------------------------------------------------------------

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

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