From e7db39f4b03ba88eafae563b9d50ed6fea9d9820 Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 30 Aug 2013 22:35:32 +0000 Subject: Don't define symbols with and without extern "C". --- graphics/gimp-ufraw/distinfo | 3 ++- graphics/gimp-ufraw/patches/patch-ufraw.h | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 graphics/gimp-ufraw/patches/patch-ufraw.h (limited to 'graphics/gimp-ufraw') diff --git a/graphics/gimp-ufraw/distinfo b/graphics/gimp-ufraw/distinfo index 497e0ca1e68..857a3004081 100644 --- a/graphics/gimp-ufraw/distinfo +++ b/graphics/gimp-ufraw/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.29 2013/03/27 22:16:41 gdt Exp $ +$NetBSD: distinfo,v 1.30 2013/08/30 22:35:32 joerg Exp $ SHA1 (20130327/ufraw-0.19.2.tar.gz) = 11a607e874eb16453a8f7964e4946a29d18b071d RMD160 (20130327/ufraw-0.19.2.tar.gz) = 358b29124496acc6bff25c1a258cb5b8d64c6359 Size (20130327/ufraw-0.19.2.tar.gz) = 980934 bytes +SHA1 (patch-ufraw.h) = e13d09f0ef158e5a8dfb10235fdb9cebc56e0596 diff --git a/graphics/gimp-ufraw/patches/patch-ufraw.h b/graphics/gimp-ufraw/patches/patch-ufraw.h new file mode 100644 index 00000000000..e469085e32e --- /dev/null +++ b/graphics/gimp-ufraw/patches/patch-ufraw.h @@ -0,0 +1,26 @@ +$NetBSD: patch-ufraw.h,v 1.1 2013/08/30 22:35:32 joerg Exp $ + +--- ufraw.h.orig 2013-08-30 20:12:47.000000000 +0000 ++++ ufraw.h +@@ -55,6 +55,10 @@ extern const char uf_auto_wb[]; + * UFObject Definitions for ufraw_settings.cc + */ + ++#ifdef __cplusplus ++extern "C" { ++#endif // __cplusplus ++ + extern UFName ufWB; + extern UFName ufPreset; + extern UFName ufWBFineTuning; +@@ -78,10 +82,6 @@ extern UFName ufRawImage; + extern UFName ufRawResources; + extern UFName ufCommandLine; + +-#ifdef __cplusplus +-extern "C" { +-#endif // __cplusplus +- + UFObject *ufraw_image_new(); + #ifdef HAVE_LENSFUN + UFObject *ufraw_lensfun_new(); -- cgit v1.2.3