Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62200 - trunk/boost/math
From: john_at_[hidden]
Date: 2010-05-25 10:45:56


Author: johnmaddock
Date: 2010-05-25 10:45:54 EDT (Tue, 25 May 2010)
New Revision: 62200
URL: http://svn.boost.org/trac/boost/changeset/62200

Log:
Change to use new symbol visibility macros.
Text files modified:
   trunk/boost/math/tr1.hpp | 13 ++++---------
   1 files changed, 4 insertions(+), 9 deletions(-)

Modified: trunk/boost/math/tr1.hpp
==============================================================================
--- trunk/boost/math/tr1.hpp (original)
+++ trunk/boost/math/tr1.hpp 2010-05-25 10:45:54 EDT (Tue, 25 May 2010)
@@ -22,7 +22,6 @@
 
 #endif // __cplusplus
 
-#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_MATH_TR1_DYN_LINK
@@ -30,17 +29,13 @@
 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_MATH_TR1_DYN_LINK)
 // export if this is our own source, otherwise import:
 #ifdef BOOST_MATH_TR1_SOURCE
-# define BOOST_MATH_TR1_DECL __declspec(dllexport)
+# define BOOST_MATH_TR1_DECL BOOST_SYMBOL_EXPORT
 #else
-# define BOOST_MATH_TR1_DECL __declspec(dllimport)
+# define BOOST_MATH_TR1_DECL BOOST_SYMBOL_IMPORT
 #endif // BOOST_MATH_TR1_SOURCE
+#else
+# define BOOST_MATH_TR1_DECL
 #endif // DYN_LINK
-#endif // BOOST_HAS_DECLSPEC
-//
-// if BOOST_MATH_TR1_DECL isn't defined yet define it now:
-#ifndef BOOST_MATH_TR1_DECL
-#define BOOST_MATH_TR1_DECL
-#endif
 //
 // Set any throw specifications on the C99 extern "C" functions - these have to be
 // the same as used in the std lib if any.


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