Fix building GCC 5 with clang 4.0
Obtained from FreeBSD ports r432958 https://svnweb.freebsd.org/ports?view=revision&revision=432958 "doesn't compile with recent versions of libc++, because it attempts to redefine abort(): /usr/include/c++/v1/functional:1398:2: error: no member named 'fancy_abort' in namespace 'std::__1'; did you mean simply 'fancy_abort'? _VSTD::abort(); ^~~~~~~ /usr/include/c++/v1/__config:383:15: note: expanded from macro '_VSTD' #define _VSTD std::_LIBCPP_NAMESPACE"
This commit is contained in:
parent
3ff587bd49
commit
ec28d4a50d
|
@ -19,11 +19,11 @@ along with GCC; see the file COPYING3. If not see
|
|||
<http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "config.h"
|
||||
#include "system.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include "system.h"
|
||||
|
||||
#include "coretypes.h"
|
||||
#include "hash-set.h"
|
||||
|
|
|
@ -38,6 +38,7 @@ extern "C" {
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#include <map>
|
||||
#include "system.h"
|
||||
#include "coretypes.h"
|
||||
#include "hash-set.h"
|
||||
|
@ -75,7 +76,6 @@ extern "C" {
|
|||
#include "tree-scalar-evolution.h"
|
||||
#include "gimple-ssa.h"
|
||||
#include "tree-into-ssa.h"
|
||||
#include <map>
|
||||
|
||||
#ifdef HAVE_isl
|
||||
#include "graphite-poly.h"
|
||||
|
|
|
@ -224,6 +224,7 @@ extern int errno;
|
|||
#ifdef __cplusplus
|
||||
# include <algorithm>
|
||||
# include <cstring>
|
||||
# include <new>
|
||||
# include <utility>
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue