From f6bddf045a0d94766961b037d9d295eb12ca84f5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 11 May 2012 04:07:05 +0000 Subject: Fix compilation with GCC 4.7. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4346 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/BufferRef.hpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'src/server') diff --git a/src/server/BufferRef.hpp b/src/server/BufferRef.hpp index 12a62930..669af033 100644 --- a/src/server/BufferRef.hpp +++ b/src/server/BufferRef.hpp @@ -14,8 +14,8 @@ along with Ingen. If not, see . */ -#ifndef INGEN_ENGINE_BUFFERREF_HPP -#define INGEN_ENGINE_BUFFERREF_HPP +#ifndef INGEN_ENGINE_BUFFER_REF_HPP +#define INGEN_ENGINE_BUFFER_REF_HPP #include @@ -26,14 +26,10 @@ class Buffer; typedef boost::intrusive_ptr BufferRef; +inline void intrusive_ptr_add_ref(Buffer* b) { b->ref(); } +inline void intrusive_ptr_release(Buffer* b) { b->deref(); } + } // namespace Server } // namespace Ingen -namespace boost { - -inline void intrusive_ptr_add_ref(Ingen::Server::Buffer* b) { b->ref(); } -inline void intrusive_ptr_release(Ingen::Server::Buffer* b) { b->deref(); } - -} - -#endif // INGEN_ENGINE_BUFFERREF_HPP +#endif // INGEN_ENGINE_BUFFER_REF_HPP -- cgit v1.2.1