[gimp] Don't forget to include <glib-object.h>
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Don't forget to include <glib-object.h>
- Date: Thu, 21 May 2020 13:07:27 +0000 (UTC)
commit 9fce4757ce919b466538ecbebe6801416775dbaf
Author: Niels De Graef <nielsdegraef gmail com>
Date: Thu May 21 15:02:00 2020 +0200
Don't forget to include <glib-object.h>
... when exposing symbols like `GType` in the header.
libgimpbase/gimpbaseenums.h | 2 +-
libgimpbase/gimpbasetypes.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/libgimpbase/gimpbaseenums.h b/libgimpbase/gimpbaseenums.h
index 3f4e7dd6ac..83600b1741 100644
--- a/libgimpbase/gimpbaseenums.h
+++ b/libgimpbase/gimpbaseenums.h
@@ -19,6 +19,7 @@
#ifndef __GIMP_BASE_ENUMS_H__
#define __GIMP_BASE_ENUMS_H__
+#include <glib-object.h>
/**
* SECTION: gimpbaseenums
@@ -28,7 +29,6 @@
* Basic GIMP enumeration data types.
**/
-
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
diff --git a/libgimpbase/gimpbasetypes.h b/libgimpbase/gimpbasetypes.h
index 3dc3409a95..f943140eed 100644
--- a/libgimpbase/gimpbasetypes.h
+++ b/libgimpbase/gimpbasetypes.h
@@ -19,6 +19,7 @@
#ifndef __GIMP_BASE_TYPES_H__
#define __GIMP_BASE_TYPES_H__
+#include <glib-object.h>
#include <libgimpcolor/gimpcolortypes.h>
#include <libgimpmath/gimpmathtypes.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]