FreeBSD: fix world build after 143476ce8
Do not redefine the fallthrough macro when building with libcpp. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Martin Matuska <mm@FreeBSD.org> Closes #12880
This commit is contained in:
parent
1833de8103
commit
14bf91a043
|
@ -30,7 +30,7 @@
|
||||||
#define ____cacheline_aligned
|
#define ____cacheline_aligned
|
||||||
#define __NORETURN __attribute__((__noreturn__))
|
#define __NORETURN __attribute__((__noreturn__))
|
||||||
|
|
||||||
#if !defined(fallthrough)
|
#if !defined(fallthrough) && !defined(_LIBCPP_VERSION)
|
||||||
#if defined(HAVE_IMPLICIT_FALLTHROUGH)
|
#if defined(HAVE_IMPLICIT_FALLTHROUGH)
|
||||||
#define fallthrough __attribute__((__fallthrough__))
|
#define fallthrough __attribute__((__fallthrough__))
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue