pkgsrc/graphics/enblend-enfuse/patches/patch-ag
adam 5b05041271 * Fixed buildling with Clang.
* Program crashes with image cache enabled. (Image cache doesn't help, anyway.)
2010-12-14 18:26:34 +00:00

22 lines
735 B
Text

$NetBSD: patch-ag,v 1.1 2010/12/14 18:26:35 adam Exp $
--- include/vigra/cachedfileimage.hxx.orig 2010-10-30 19:45:49.000000000 +0000
+++ include/vigra/cachedfileimage.hxx
@@ -556,7 +556,7 @@ class NotifyingDirectionSelector;
template <class T, class Notify>
class NotifyingDirectionSelector<UnstridedArrayTag, T, Notify>
{
-#ifdef __GNUC__
+#if defined(__GNUC__) && !defined(__clang__)
friend class Notify::self_type;
#else
friend typename Notify::self_type;
@@ -602,7 +602,7 @@ private:
template <class T, class Notify>
class NotifyingDirectionSelector<StridedArrayTag, T, Notify> {
-#ifdef __GNUC__
+#if defined(__GNUC__) && !defined(__clang__)
friend class Notify::self_type;
#else
friend typename Notify::self_type;