[gimp] plug-ins: include libgimp/gimp.h and gimpui.h in openexr-wrapper.cc
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: include libgimp/gimp.h and gimpui.h in openexr-wrapper.cc
- Date: Sun, 27 Apr 2014 12:35:02 +0000 (UTC)
commit a4773a559982dbf53a6f9b63c113452550e9e1ae
Author: Michael Natterer <mitch gimp org>
Date: Sun Apr 27 14:30:00 2014 +0200
plug-ins: include libgimp/gimp.h and gimpui.h in openexr-wrapper.cc
The file does not need the includes, but including libgimp from a C++
file makes sure the build fails if something forbidden gets added to
any public libgimp header, such as a struct member named "private".
plug-ins/file-exr/openexr-wrapper.cc | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/file-exr/openexr-wrapper.cc b/plug-ins/file-exr/openexr-wrapper.cc
index 3be6e2c..9cf1430 100644
--- a/plug-ins/file-exr/openexr-wrapper.cc
+++ b/plug-ins/file-exr/openexr-wrapper.cc
@@ -1,5 +1,13 @@
#include "config.h"
+/* These libgimp includes are not needed here at all, but this is a
+ * convenient place to make sure the public libgimp headers are
+ * C++-clean. The C++ compiler will choke on stuff like naming
+ * a struct member or parameter "private".
+ */
+#include "libgimp/gimp.h"
+#include "libgimp/gimpui.h"
+
#include "openexr-wrapper.h"
#include <ImfInputFile.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]