File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed
Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,13 @@ IF(NOT SHARED_LIBS)
4343 ENDIF (WIN32 )
4444ENDIF (NOT SHARED_LIBS)
4545
46+ IF (WIN32 )
47+ IF (SHARED_LIBS)
48+ # See http://svn.boost.org/trac/boost/ticket/3465
49+ SET (WT_NO_BOOST_INTRUSIVE true )
50+ ENDIF (SHARED_LIBS)
51+ ENDIF (WIN32 )
52+
4653# Fixup Windows declspec stuff
4754IF (NOT SHARED_LIBS)
4855 SET (WT_STATIC true )
Original file line number Diff line number Diff line change 2929#cmakedefine WT_HAS_WRASTERIMAGE
3030#cmakedefine WT_HAS_WPDFIMAGE
3131
32+ #cmakedefine WT_NO_BOOST_INTRUSIVE
33+
3234#if $ {WT_DEBUG_ENABLED }
3335#ifndef WT_TARGET_JAVA
3436 #define WT_DEBUG (statement ) do { if (Wt::WApplication::instance()->debug()) statement; } while(0)
Original file line number Diff line number Diff line change 1010#include < Wt/WObject>
1111#include < bitset>
1212
13- #if defined(WIN32) && defined(wt_EXPORTS)
14- // boost intrusive compilation fails with static asserts when Wt is compiled
15- // as a DLL on windows. This hack makes all static asserts succeed.
16- namespace boost {
17- template <bool x> struct STATIC_ASSERTION_FAILURE { enum { value = 1 }; };
18- }
19- #endif
20-
2113#include < boost/bind.hpp>
2214#include < boost/intrusive/list.hpp>
2315#include < boost/signal.hpp>
@@ -441,9 +433,9 @@ public:
441433 * \ingroup signalslot
442434 */
443435class WT_API EventSignalBase : public SignalBase
444- #ifndef WT_TARGET_JAVA
436+ #if !(defined( WT_TARGET_JAVA) || defined(WT_NO_BOOST_INTRUSIVE))
445437 ,public boost::intrusive::list_base_hook<>
446- #endif // WT_TARGET_JAVA
438+ #endif
447439{
448440public:
449441 virtual ~EventSignalBase ();
You can’t perform that action at this time.
0 commit comments