|
Boost Users : |
From: craigp (craigp98072_at_[hidden])
Date: 2006-11-30 04:18:15
hello -
i'm using gccxml (with pygccxml to generate python wrappers and fusion
extension code), and under msc (7.1 in this case) i get compilation errors.
it's a trivial fix, since gccxml attempts to emulate msc, it just needs another
check in a couple files (naturally you'll probably want to rename
'CDP_USING_GCCXML'). i thought i'd send a patch, since i think others may try
using gccxml (esp. since pygccxml is shaping up quite nicely).
there are probably other places where this may be a problem, but for now,
they're the only ones i've run into.
HTH,
--craig
cvs -z9 diff -u -- and.hpp or.hpp (in directory
D:\dev\boost.cvs\boost\boost\mpl\)
Index: and.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/mpl/and.hpp,v
retrieving revision 1.5
diff -u -r1.5 and.hpp
--- and.hpp 2 Sep 2004 15:40:41 -0000 1.5
+++ and.hpp 30 Nov 2006 09:08:40 -0000
@@ -28,7 +28,7 @@
// 'or' and 'and' macros, see http://tinyurl.com/3et69; 'defined(and)'
// has to be checked in a separate condition, otherwise GCC complains
// about 'and' being an alternative token
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) && !defined(CDP_USING_GCCXML)
#if defined(and)
# pragma push_macro("and")
# undef and
@@ -39,7 +39,7 @@
# define BOOST_MPL_PREPROCESSED_HEADER and.hpp
# include <boost/mpl/aux_/include_preprocessed.hpp>
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) && !defined(CDP_USING_GCCXML)
#if defined(and)
# pragma pop_macro("and")
#endif
Index: or.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/mpl/or.hpp,v
retrieving revision 1.4
diff -u -r1.4 or.hpp
--- or.hpp 2 Sep 2004 15:40:42 -0000 1.4
+++ or.hpp 30 Nov 2006 09:08:46 -0000
@@ -29,7 +29,7 @@
// 'or' and 'and' macros, see http://tinyurl.com/3et69; 'defined(or)'
// has to be checked in a separate condition, otherwise GCC complains
// about 'or' being an alternative token
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) && !defined(CDP_USING_GCCXML)
#if defined(or)
# pragma push_macro("or")
# undef or
@@ -40,7 +40,7 @@
# define BOOST_MPL_PREPROCESSED_HEADER or.hpp
# include <boost/mpl/aux_/include_preprocessed.hpp>
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) && !defined(CDP_USING_GCCXML)
#if defined(or)
# pragma pop_macro("or")
#endif
____________________________________________________________________________________
Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net