Update of /cvsroot/boost/boost/libs/mpi/src/python
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29703

Modified Files:
        serialize.cpp skeleton_and_content.cpp 
Log Message:
boost\archive\detail\basic_iarchive: Remove some bogus declspecs

Boost.MPI: Added support for Windows auto-linking

Index: serialize.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/mpi/src/python/serialize.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- serialize.cpp       17 Jan 2007 02:48:50 -0000      1.1
+++ serialize.cpp       26 Jul 2007 16:12:25 -0000      1.2
@@ -59,7 +59,8 @@
   // A map from Python type objects to skeleton/content handlers
   typedef std::map<PyTypeObject*, skeleton_content_handler>
     skeleton_content_handlers_type;
-  skeleton_content_handlers_type skeleton_content_handlers;
+
+  BOOST_MPI_PYTHON_DECL skeleton_content_handlers_type 
skeleton_content_handlers;
 
   bool
   skeleton_and_content_handler_registered(PyTypeObject* type)

Index: skeleton_and_content.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/mpi/src/python/skeleton_and_content.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- skeleton_and_content.cpp    17 Jan 2007 02:48:50 -0000      1.1
+++ skeleton_and_content.cpp    26 Jul 2007 16:12:26 -0000      1.2
@@ -25,7 +25,15 @@
 namespace detail {
   typedef std::map<PyTypeObject*, skeleton_content_handler>
     skeleton_content_handlers_type;
-  extern skeleton_content_handlers_type skeleton_content_handlers;
+
+// We're actually importing skeleton_content_handlers from 
skeleton_and_content.cpp.
+#if defined(BOOST_HAS_DECLSPEC) && (defined(BOOST_MPI_PYTHON_DYN_LINK) || 
defined(BOOST_ALL_DYN_LINK))
+#  define BOOST_SC_DECL __declspec(dllimport)
+#else
+#  define BOOST_SC_DECL
+#endif
+
+  extern BOOST_SC_DECL skeleton_content_handlers_type 
skeleton_content_handlers;
 }
 
 /**


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to