mirror of
https://github.com/triqs/dft_tools
synced 2024-12-25 22:03:43 +01:00
Fix for clang 1y with gcc lib
- add a workaround for a gcc issue in fisrt_include. - --> make sure that the first include is : either a triqs lib or first_include
This commit is contained in:
parent
602201527d
commit
b2603dcf3a
@ -1,3 +1,4 @@
|
|||||||
|
#include <triqs/utility/first_include.hpp>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <boost/pool/pool_alloc.hpp>
|
#include <boost/pool/pool_alloc.hpp>
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
#ifndef TRIQS_TOOLS_MC_GENERIC_H
|
#ifndef TRIQS_TOOLS_MC_GENERIC_H
|
||||||
#define TRIQS_TOOLS_MC_GENERIC_H
|
#define TRIQS_TOOLS_MC_GENERIC_H
|
||||||
|
#include <triqs/utility/first_include.hpp>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <triqs/utility/timer.hpp>
|
#include <triqs/utility/timer.hpp>
|
||||||
#include <triqs/utility/report_stream.hpp>
|
#include <triqs/utility/report_stream.hpp>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
*
|
*
|
||||||
* TRIQS: a Toolbox for Research in Interacting Quantum Systems
|
* TRIQS: a Toolbox for Research in Interacting Quantum Systems
|
||||||
@ -22,7 +21,7 @@
|
|||||||
|
|
||||||
#ifndef POLYMORPH_RANDOM_GENERATOR_H
|
#ifndef POLYMORPH_RANDOM_GENERATOR_H
|
||||||
#define POLYMORPH_RANDOM_GENERATOR_H
|
#define POLYMORPH_RANDOM_GENERATOR_H
|
||||||
|
#include <triqs/utility/first_include.hpp>
|
||||||
#include <boost/scoped_ptr.hpp>
|
#include <boost/scoped_ptr.hpp>
|
||||||
#include "../utility/exceptions.hpp"
|
#include "../utility/exceptions.hpp"
|
||||||
#include "./generator.hpp"
|
#include "./generator.hpp"
|
||||||
|
@ -21,6 +21,12 @@
|
|||||||
#ifndef TRIQS_ARRAYS_FIRST_INCLUDE_PYTHON_H
|
#ifndef TRIQS_ARRAYS_FIRST_INCLUDE_PYTHON_H
|
||||||
#define TRIQS_ARRAYS_FIRST_INCLUDE_PYTHON_H
|
#define TRIQS_ARRAYS_FIRST_INCLUDE_PYTHON_H
|
||||||
|
|
||||||
|
// clang but not libc++
|
||||||
|
#if defined(__clang__) and !defined(_LIBCPP_VERSION)
|
||||||
|
// workaround an error in gcc stdlib
|
||||||
|
typedef long double max_align_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef TRIQS_BUILDING_LIBRARY
|
#ifdef TRIQS_BUILDING_LIBRARY
|
||||||
#include <triqs_config.h>
|
#include <triqs_config.h>
|
||||||
#else
|
#else
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
#ifndef TRIQS_UTILITY_TRACE_H
|
#ifndef TRIQS_UTILITY_TRACE_H
|
||||||
#define TRIQS_UTILITY_TRACE_H
|
#define TRIQS_UTILITY_TRACE_H
|
||||||
|
#include <triqs/utility/first_include.hpp>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user