2
0
mirror of https://github.com/boostorg/graph.git synced 2026-02-26 16:52:12 +00:00

Factored out declspec code; added BOOST_GRAPH_SOURCE where necessary

[SVN r58179]
This commit is contained in:
Jeremiah Willcock
2009-12-06 03:51:08 +00:00
parent 4a3a1b5b70
commit f3af4d1a4e
5 changed files with 36 additions and 14 deletions

View File

@@ -0,0 +1,30 @@
//=======================================================================
// Copyright 2001 University of Notre Dame.
// Copyright 2003 Jeremy Siek
// Authors: Lie-Quan Lee, Jeremy Siek, and Douglas Gregor
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=======================================================================
#ifndef BOOST_GRAPH_DLL_IMPORT_EXPORT_HPP
#define BOOST_GRAPH_DLL_IMPORT_EXPORT_HPP
#include <boost/config.hpp>
#ifdef BOOST_HAS_DECLSPEC
# if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_GRAPH_DYN_LINK)
# ifdef BOOST_GRAPH_SOURCE
# define BOOST_GRAPH_DECL __declspec(dllexport)
# else
# define BOOST_GRAPH_DECL __declspec(dllimport)
# endif // BOOST_GRAPH_SOURCE
# endif // DYN_LINK
#endif // BOOST_HAS_DECLSPEC
#ifndef BOOST_GRAPH_DECL
# define BOOST_GRAPH_DECL
#endif
#endif // BOOST_GRAPH_DLL_IMPORT_EXPORT_HPP

View File

@@ -16,6 +16,7 @@
#include <boost/lexical_cast.hpp>
#include <boost/any.hpp>
#include <boost/type_traits/is_convertible.hpp>
#include <boost/graph/dll_import_export.hpp>
#include <boost/graph/graphviz.hpp> // for exceptions
#include <typeinfo>
#include <boost/mpl/bool.hpp>

View File

@@ -24,20 +24,7 @@
#include <boost/graph/adjacency_list.hpp>
#include <boost/property_map/dynamic_property_map.hpp>
#include <boost/graph/overloading.hpp>
#ifdef BOOST_HAS_DECLSPEC
# if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_GRAPH_DYN_LINK)
# ifdef BOOST_GRAPH_SOURCE
# define BOOST_GRAPH_DECL __declspec(dllexport)
# else
# define BOOST_GRAPH_DECL __declspec(dllimport)
# endif // BOOST_GRAPH_SOURCE
# endif // DYN_LINK
#endif // BOOST_HAS_DECLSPEC
#ifndef BOOST_GRAPH_DECL
# define BOOST_GRAPH_DECL
#endif
#include <boost/graph/dll_import_export.hpp>
namespace boost {