Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62203 - trunk/boost/filesystem
From: bdawes_at_[hidden]
Date: 2010-05-25 12:15:02


Author: bemandawes
Date: 2010-05-25 12:15:01 EDT (Tue, 25 May 2010)
New Revision: 62203
URL: http://svn.boost.org/trac/boost/changeset/62203

Log:
Use new symbol visibility macros
Text files modified:
   trunk/boost/filesystem/config.hpp | 28 +++++++---------------------
   1 files changed, 7 insertions(+), 21 deletions(-)

Modified: trunk/boost/filesystem/config.hpp
==============================================================================
--- trunk/boost/filesystem/config.hpp (original)
+++ trunk/boost/filesystem/config.hpp 2010-05-25 12:15:01 EDT (Tue, 25 May 2010)
@@ -64,30 +64,16 @@
 # define BOOST_FILESYSTEM_NARROW_ONLY
 # endif
 
-// enable dynamic linking on Windows ---------------------------------------//
+// enable dynamic linking ---------------------------------------------------//
 
-# if (defined(BOOST_ALL_DYN_LINK) || defined(BOOST_FILESYSTEM_DYN_LINK)) && BOOST_WORKAROUND(__BORLANDC__, <0x610) && defined(__WIN32__)
-# error Dynamic linking Boost.Filesystem does not work for Borland; use static linking instead
-# endif
-
-#ifdef BOOST_HAS_DECLSPEC // defined in config system
-// we need to import/export our code only if the user has specifically
-// asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost
-// libraries to be dynamically linked, or BOOST_FILESYSTEM_DYN_LINK
-// if they want just this one to be dynamically liked:
 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_FILESYSTEM_DYN_LINK)
-// export if this is our own source, otherwise import:
-#ifdef BOOST_FILESYSTEM_SOURCE
-# define BOOST_FILESYSTEM_DECL __declspec(dllexport)
+# if defined(BOOST_FILESYSTEM_SOURCE)
+# define BOOST_FILESYSTEM_DECL BOOST_SYMBOL_EXPORT
+# else
+# define BOOST_FILESYSTEM_DECL BOOST_SYMBOL_IMPORT
+# endif
 #else
-# define BOOST_FILESYSTEM_DECL __declspec(dllimport)
-#endif // BOOST_FILESYSTEM_SOURCE
-#endif // DYN_LINK
-#endif // BOOST_HAS_DECLSPEC
-//
-// if BOOST_FILESYSTEM_DECL isn't defined yet define it now:
-#ifndef BOOST_FILESYSTEM_DECL
-#define BOOST_FILESYSTEM_DECL
+# define BOOST_FILESYSTEM_DECL
 #endif
 
 // enable automatic library variant selection ------------------------------//


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk