Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73299 - trunk/boost/program_options
From: juergen.hunold_at_[hidden]
Date: 2011-07-22 08:08:04


Author: jhunold
Date: 2011-07-22 08:08:03 EDT (Fri, 22 Jul 2011)
New Revision: 73299
URL: http://svn.boost.org/trac/boost/changeset/73299

Log:
Enable visibility support. Refs #2114.

Text files modified:
   trunk/boost/program_options/config.hpp | 7 ++-----
   1 files changed, 2 insertions(+), 5 deletions(-)

Modified: trunk/boost/program_options/config.hpp
==============================================================================
--- trunk/boost/program_options/config.hpp (original)
+++ trunk/boost/program_options/config.hpp 2011-07-22 08:08:03 EDT (Fri, 22 Jul 2011)
@@ -34,17 +34,14 @@
 #endif // BOOST_VERSION
 
 ///////////////////////////////////////////////////////////////////////////////
-// Windows DLL suport
-#ifdef BOOST_HAS_DECLSPEC
 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_PROGRAM_OPTIONS_DYN_LINK)
 // export if this is our own source, otherwise import:
 #ifdef BOOST_PROGRAM_OPTIONS_SOURCE
-# define BOOST_PROGRAM_OPTIONS_DECL __declspec(dllexport)
+# define BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_EXPORT
 #else
-# define BOOST_PROGRAM_OPTIONS_DECL __declspec(dllimport)
+# define BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_IMPORT
 #endif // BOOST_PROGRAM_OPTIONS_SOURCE
 #endif // DYN_LINK
-#endif // BOOST_HAS_DECLSPEC
 
 #ifndef BOOST_PROGRAM_OPTIONS_DECL
 #define BOOST_PROGRAM_OPTIONS_DECL


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