Skip to content

Commit

Permalink
Fix compile error on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeex committed Jul 6, 2014
1 parent f8d375a commit 4461047
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,21 @@
#define STREAMER_OBJECT_TYPE_PLAYER (1)
#define STREAMER_OBJECT_TYPE_DYNAMIC (2)

template<typename T>
inline void intrusive_ptr_add_ref(T *t)
{
++t->references;
}

template<typename T>
inline void intrusive_ptr_release(T *t)
{
if (!(--t->references))
{
delete t;
}
}

#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/intrusive_ptr.hpp>
Expand Down Expand Up @@ -121,19 +136,4 @@ namespace boost { namespace geometry { namespace traits {
};
}}}

template<typename T>
inline void intrusive_ptr_add_ref(T *t)
{
++t->references;
}

template<typename T>
inline void intrusive_ptr_release(T *t)
{
if (!(--t->references))
{
delete t;
}
}

#endif

0 comments on commit 4461047

Please sign in to comment.