DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 16a91140548943ae6669c3d63ad01447af1464a6
parent 5b127365897128617c29c53022e010a84c1a0a05
Author: falkTX <falktx@gmail.com>
Date:   Mon, 12 May 2014 17:22:02 +0100

Fix build

Diffstat:
Mdistrho/extra/d_scopedpointer.hpp | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/distrho/extra/d_scopedpointer.hpp b/distrho/extra/d_scopedpointer.hpp @@ -19,6 +19,8 @@ #include "../DistrhoUtils.hpp" +#include <algorithm> + // ----------------------------------------------------------------------- // The following code was based from juce-core ScopedPointer class // Copyright (C) 2013 Raw Material Software Ltd. @@ -207,7 +209,13 @@ private: It's probably best to use the latter form when writing your object declarations anyway, as this is a better representation of the code that you actually want the compiler to produce. */ - DISTRHO_DECLARE_NON_COPY_CLASS(ScopedPointer); +# ifdef DISTRHO_PROPER_CPP11_SUPPORT + ScopedPointer(const ScopedPointer&) = delete; + ScopedPointer& operator=(const ScopedPointer&) = delete; +# else + ScopedPointer(const ScopedPointer&); + ScopedPointer& operator=(const ScopedPointer&); +# endif #endif };