From 9b4546c487bc59e790716a11531e660110ca81e9 Mon Sep 17 00:00:00 2001 From: Daniel Kirchner Date: Wed, 8 Aug 2018 16:31:17 +0200 Subject: Add workarounds for building against CVC4 on ArchLinux. --- libsolidity/formal/CVC4Interface.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libsolidity/formal') diff --git a/libsolidity/formal/CVC4Interface.h b/libsolidity/formal/CVC4Interface.h index dcd87525..cd6d761d 100644 --- a/libsolidity/formal/CVC4Interface.h +++ b/libsolidity/formal/CVC4Interface.h @@ -21,8 +21,19 @@ #include +#if defined(__GLIBC__) +// The CVC4 headers includes the deprecated system headers +// and . These headers cause a warning that will break the +// build, unless _GLIBCXX_PERMIT_BACKWARD_HASH is set. +#define _GLIBCXX_PERMIT_BACKWARD_HASH +#endif + #include +#if defined(__GLIBC__) +#undef _GLIBCXX_PERMIT_BACKWARD_HASH +#endif + namespace dev { namespace solidity -- cgit v1.2.3