blob: 8e7fb5c9ea7a5e48b0e2e0574ee3f326857b7d6a [file] [log] [blame]
Jeff Thompsonf7d49942013-08-01 16:47:40 -07001// (C) Copyright John Maddock 2005.
2// Use, modification and distribution are subject to the
3// Boost Software License, Version 1.0. (See accompanying file
4// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5//
6// The aim of this header is just to include <functional> but to do
7// so in a way that does not result in recursive inclusion of
Jeff Thompson9939dcd2013-10-15 15:12:24 -07008// the Boost TR1 components if ndnboost/tr1/tr1/functional is in the
Jeff Thompsonf7d49942013-08-01 16:47:40 -07009// include search path. We have to do this to avoid circular
10// dependencies:
11//
12
Jeff Thompson3d613fd2013-10-15 15:39:04 -070013#ifndef NDNBOOST_CONFIG_FUNCTIONAL
14# define NDNBOOST_CONFIG_FUNCTIONAL
Jeff Thompsonf7d49942013-08-01 16:47:40 -070015
Jeff Thompson3d613fd2013-10-15 15:39:04 -070016# ifndef NDNBOOST_TR1_NO_RECURSION
17# define NDNBOOST_TR1_NO_RECURSION
18# define NDNBOOST_CONFIG_NO_FUNCTIONAL_RECURSION
Jeff Thompsonf7d49942013-08-01 16:47:40 -070019# endif
20
21# include <functional>
22
Jeff Thompson3d613fd2013-10-15 15:39:04 -070023# ifdef NDNBOOST_CONFIG_NO_FUNCTIONAL_RECURSION
24# undef NDNBOOST_TR1_NO_RECURSION
25# undef NDNBOOST_CONFIG_NO_FUNCTIONAL_RECURSION
Jeff Thompsonf7d49942013-08-01 16:47:40 -070026# endif
27
28#endif