gentoo-ebuilds/media-gfx/darktable/files/darktable-5.0.1-fix-c-linkage-gcc-15.patch
Paul Zander 715d8dc1ff
media-gfx/darktable: add 5.0.1
Closes: https://bugs.gentoo.org/953974
Closes: https://bugs.gentoo.org/953627
Closes: https://bugs.gentoo.org/946892
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2025-04-26 00:56:18 +01:00

46 lines
1.1 KiB
Diff

From 70749107b9f2a7078982fecc998f8d96d1cc8f19 Mon Sep 17 00:00:00 2001
From: Paul Zander <negril.nx@gmail.com>
Date: Sat, 26 Apr 2025 01:21:08 +0200
Subject: [PATCH] fix c linkage gcc-15
Bug: https://bugs.gentoo.org/953974
Signed-off-by: Paul Zander <negril.nx@gmail.com>
diff --git a/src/imageio/format/imageio_format_api.h b/src/imageio/format/imageio_format_api.h
index 85d4290..8af9c81 100644
--- a/src/imageio/format/imageio_format_api.h
+++ b/src/imageio/format/imageio_format_api.h
@@ -20,10 +20,6 @@
#ifdef FULL_API_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <stddef.h>
#include <stdint.h>
@@ -33,6 +29,8 @@ struct dt_dev_pixelpipe_t;
#include "common/colorspaces.h" // because forward declaring enums doesn't work in C++ :(
+G_BEGIN_DECLS
+
/* early definition of modules to do type checking */
#pragma GCC visibility push(default)
@@ -96,9 +94,7 @@ OPTIONAL(int, read_image, struct dt_imageio_module_data_t *data, uint8_t *out);
#pragma GCC visibility pop
-#ifdef __cplusplus
-}
-#endif
+G_END_DECLS
#endif // FULL_API_H
--
2.49.0