Skip to content

Commit

Permalink
Merge pull request #9 from Zeex/master
Browse files Browse the repository at this point in the history
Fix compile error on Linux
  • Loading branch information
samp-incognito committed Jul 7, 2014
2 parents f8d375a + 4461047 commit 39a1115
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 39a1115

Please sign in to comment.