diff --git a/libgimp/gimp-debug.h b/libgimp/gimp-debug.h
index d18e3446b3..e5fd4b5b4d 100644
--- a/libgimp/gimp-debug.h
+++ b/libgimp/gimp-debug.h
@@ -18,10 +18,12 @@
* .
*/
-#pragma once
+#ifndef __GIMP_DEBUG_H__
+#define __GIMP_DEBUG_H__
G_BEGIN_DECLS
+
typedef enum
{
GIMP_DEBUG_PID = 1 << 0,
@@ -40,5 +42,7 @@ void _gimp_debug_configure (GimpStackTraceMode stack_trace_mode);
guint _gimp_get_debug_flags (void);
void _gimp_debug_stop (void);
+
G_END_DECLS
+#endif /* __GIMP_DEBUG_H__ */
diff --git a/libgimp/gimp-private.h b/libgimp/gimp-private.h
index 9f63ef4b98..b5e4e9594d 100644
--- a/libgimp/gimp-private.h
+++ b/libgimp/gimp-private.h
@@ -18,10 +18,15 @@
* .
*/
-#pragma once
+#ifndef __GIMP_PRIVATE_H__
+#define __GIMP_PRIVATE_H__
G_BEGIN_DECLS
+
void _gimp_config (GPConfig *config);
+
G_END_DECLS
+
+#endif /* __GIMP_PRIVATE_H__ */
diff --git a/libgimp/gimp-shm.h b/libgimp/gimp-shm.h
index 5a51f23226..f81437c719 100644
--- a/libgimp/gimp-shm.h
+++ b/libgimp/gimp-shm.h
@@ -18,13 +18,18 @@
* .
*/
-#pragma once
+#ifndef __GIMP_SHM_H__
+#define __GIMP_SHM_H__
G_BEGIN_DECLS
+
guchar * _gimp_shm_addr (void);
void _gimp_shm_open (gint shm_ID);
void _gimp_shm_close (void);
+
G_END_DECLS
+
+#endif /* __GIMP_SHM_H__ */
diff --git a/libgimp/gimp_pdb.h b/libgimp/gimp_pdb.h
index 7e1a73a886..84785a95e8 100644
--- a/libgimp/gimp_pdb.h
+++ b/libgimp/gimp_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_GIMP_PDB_H__
+#define __GIMP_GIMP_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -39,4 +40,7 @@ GimpParasite* gimp_get_parasite (const gchar *name);
gchar** gimp_get_parasite_list (void);
GFile* gimp_temp_file (const gchar *extension);
+
G_END_DECLS
+
+#endif /* __GIMP_GIMP_PDB_H__ */
diff --git a/libgimp/gimpbrush_pdb.h b/libgimp/gimpbrush_pdb.h
index e8423e5393..fa693f1af4 100644
--- a/libgimp/gimpbrush_pdb.h
+++ b/libgimp/gimpbrush_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_BRUSH_PDB_H__
+#define __GIMP_BRUSH_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -80,4 +81,7 @@ gboolean gimp_brush_set_angle (GimpBrush *
gdouble angle_in,
gdouble *angle_out);
+
G_END_DECLS
+
+#endif /* __GIMP_BRUSH_PDB_H__ */
diff --git a/libgimp/gimpbrushes_pdb.h b/libgimp/gimpbrushes_pdb.h
index 4b18f9b06e..37127b90ee 100644
--- a/libgimp/gimpbrushes_pdb.h
+++ b/libgimp/gimpbrushes_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_BRUSHES_PDB_H__
+#define __GIMP_BRUSHES_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -34,4 +35,7 @@ G_BEGIN_DECLS
gboolean gimp_brushes_refresh (void);
GimpBrush** gimp_brushes_get_list (const gchar *filter);
+
G_END_DECLS
+
+#endif /* __GIMP_BRUSHES_PDB_H__ */
diff --git a/libgimp/gimpbrushselect_pdb.h b/libgimp/gimpbrushselect_pdb.h
index 4bf0e199b1..ed7c607638 100644
--- a/libgimp/gimpbrushselect_pdb.h
+++ b/libgimp/gimpbrushselect_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_BRUSH_SELECT_PDB_H__
+#define __GIMP_BRUSH_SELECT_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -39,4 +40,7 @@ gboolean gimp_brushes_close_popup (const gchar *brush_callback);
gboolean gimp_brushes_set_popup (const gchar *brush_callback,
GimpBrush *brush);
+
G_END_DECLS
+
+#endif /* __GIMP_BRUSH_SELECT_PDB_H__ */
diff --git a/libgimp/gimpbuffer_pdb.h b/libgimp/gimpbuffer_pdb.h
index 894e22eeee..8e9a593fba 100644
--- a/libgimp/gimpbuffer_pdb.h
+++ b/libgimp/gimpbuffer_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_BUFFER_PDB_H__
+#define __GIMP_BUFFER_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -40,4 +41,7 @@ gint gimp_buffer_get_height (const gchar *buffer_name);
gint gimp_buffer_get_bytes (const gchar *buffer_name);
GimpImageType gimp_buffer_get_image_type (const gchar *buffer_name);
+
G_END_DECLS
+
+#endif /* __GIMP_BUFFER_PDB_H__ */
diff --git a/libgimp/gimpchannel_pdb.h b/libgimp/gimpchannel_pdb.h
index 61abc98ec0..c358bc5312 100644
--- a/libgimp/gimpchannel_pdb.h
+++ b/libgimp/gimpchannel_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_CHANNEL_PDB_H__
+#define __GIMP_CHANNEL_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -56,4 +57,7 @@ GeglColor* gimp_channel_get_color (GimpChannel *channel);
gboolean gimp_channel_set_color (GimpChannel *channel,
GeglColor *color);
+
G_END_DECLS
+
+#endif /* __GIMP_CHANNEL_PDB_H__ */
diff --git a/libgimp/gimpcontext_pdb.h b/libgimp/gimpcontext_pdb.h
index dc5ba4d5fd..da8eb7443c 100644
--- a/libgimp/gimpcontext_pdb.h
+++ b/libgimp/gimpcontext_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_CONTEXT_PDB_H__
+#define __GIMP_CONTEXT_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -154,4 +155,7 @@ gdouble gimp_context_get_ink_blob_angle (void)
gboolean gimp_context_set_ink_blob_angle (gdouble angle);
G_GNUC_INTERNAL GimpResource* _gimp_context_get_resource (const gchar *type_name);
+
G_END_DECLS
+
+#endif /* __GIMP_CONTEXT_PDB_H__ */
diff --git a/libgimp/gimpdebug_pdb.h b/libgimp/gimpdebug_pdb.h
index 94c0c03704..234dc18128 100644
--- a/libgimp/gimpdebug_pdb.h
+++ b/libgimp/gimpdebug_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_DEBUG_PDB_H__
+#define __GIMP_DEBUG_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -34,4 +35,7 @@ G_BEGIN_DECLS
gboolean gimp_debug_timer_start (void);
gdouble gimp_debug_timer_end (void);
+
G_END_DECLS
+
+#endif /* __GIMP_DEBUG_PDB_H__ */
diff --git a/libgimp/gimpdisplay_pdb.h b/libgimp/gimpdisplay_pdb.h
index 369f356926..d5fac224ad 100644
--- a/libgimp/gimpdisplay_pdb.h
+++ b/libgimp/gimpdisplay_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_DISPLAY_PDB_H__
+#define __GIMP_DISPLAY_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -40,4 +41,7 @@ gboolean gimp_displays_flush (void);
gboolean gimp_displays_reconnect (GimpImage *old_image,
GimpImage *new_image);
+
G_END_DECLS
+
+#endif /* __GIMP_DISPLAY_PDB_H__ */
diff --git a/libgimp/gimpdrawable_pdb.h b/libgimp/gimpdrawable_pdb.h
index 69bbcd4b43..396fbe82b5 100644
--- a/libgimp/gimpdrawable_pdb.h
+++ b/libgimp/gimpdrawable_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_DRAWABLE_PDB_H__
+#define __GIMP_DRAWABLE_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -106,4 +107,7 @@ gboolean gimp_drawable_foreground_extract (GimpDrawable
GimpForegroundExtractMode mode,
GimpDrawable *mask);
+
G_END_DECLS
+
+#endif /* __GIMP_DRAWABLE_PDB_H__ */
diff --git a/libgimp/gimpdrawablecolor_pdb.h b/libgimp/gimpdrawablecolor_pdb.h
index 219529a34e..d4fb5e9737 100644
--- a/libgimp/gimpdrawablecolor_pdb.h
+++ b/libgimp/gimpdrawablecolor_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_DRAWABLE_COLOR_PDB_H__
+#define __GIMP_DRAWABLE_COLOR_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -103,4 +104,7 @@ gboolean gimp_drawable_threshold (GimpDrawable *drawable,
gdouble low_threshold,
gdouble high_threshold);
+
G_END_DECLS
+
+#endif /* __GIMP_DRAWABLE_COLOR_PDB_H__ */
diff --git a/libgimp/gimpdrawableedit_pdb.h b/libgimp/gimpdrawableedit_pdb.h
index c2a0c40418..4ee15bb99a 100644
--- a/libgimp/gimpdrawableedit_pdb.h
+++ b/libgimp/gimpdrawableedit_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_DRAWABLE_EDIT_PDB_H__
+#define __GIMP_DRAWABLE_EDIT_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -53,4 +54,7 @@ gboolean gimp_drawable_edit_stroke_selection (GimpDrawable *drawable);
gboolean gimp_drawable_edit_stroke_item (GimpDrawable *drawable,
GimpItem *item);
+
G_END_DECLS
+
+#endif /* __GIMP_DRAWABLE_EDIT_PDB_H__ */
diff --git a/libgimp/gimpdrawablefilter_pdb.h b/libgimp/gimpdrawablefilter_pdb.h
index 02ab767476..b624a0b0f6 100644
--- a/libgimp/gimpdrawablefilter_pdb.h
+++ b/libgimp/gimpdrawablefilter_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_DRAWABLE_FILTER_PDB_H__
+#define __GIMP_DRAWABLE_FILTER_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -64,4 +65,7 @@ gboolean gimp_drawable_filter_operation_get_details (const
GimpValueArray **propvalues);
GimpValueArray* gimp_drawable_filter_operation_get_pspecs (const gchar *operation_name);
+
G_END_DECLS
+
+#endif /* __GIMP_DRAWABLE_FILTER_PDB_H__ */
diff --git a/libgimp/gimpdrawableselect_pdb.h b/libgimp/gimpdrawableselect_pdb.h
index 381b46c778..b873daf841 100644
--- a/libgimp/gimpdrawableselect_pdb.h
+++ b/libgimp/gimpdrawableselect_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_DRAWABLE_SELECT_PDB_H__
+#define __GIMP_DRAWABLE_SELECT_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -40,4 +41,7 @@ gboolean gimp_drawables_close_popup (const gchar *callback);
gboolean gimp_drawables_set_popup (const gchar *callback,
GimpDrawable *drawable);
+
G_END_DECLS
+
+#endif /* __GIMP_DRAWABLE_SELECT_PDB_H__ */
diff --git a/libgimp/gimpdynamics_pdb.h b/libgimp/gimpdynamics_pdb.h
index 67325f45e8..c46b5961fd 100644
--- a/libgimp/gimpdynamics_pdb.h
+++ b/libgimp/gimpdynamics_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_DYNAMICS_PDB_H__
+#define __GIMP_DYNAMICS_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -34,4 +35,7 @@ G_BEGIN_DECLS
gboolean gimp_dynamics_refresh (void);
gchar** gimp_dynamics_get_name_list (const gchar *filter);
+
G_END_DECLS
+
+#endif /* __GIMP_DYNAMICS_PDB_H__ */
diff --git a/libgimp/gimpedit_pdb.h b/libgimp/gimpedit_pdb.h
index 31c98ebbc5..0fb6dc519e 100644
--- a/libgimp/gimpedit_pdb.h
+++ b/libgimp/gimpedit_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_EDIT_PDB_H__
+#define __GIMP_EDIT_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -48,4 +49,7 @@ GimpLayer* gimp_edit_named_paste (GimpDrawable *drawable
gboolean paste_into);
GimpImage* gimp_edit_named_paste_as_new_image (const gchar *buffer_name);
+
G_END_DECLS
+
+#endif /* __GIMP_EDIT_PDB_H__ */
diff --git a/libgimp/gimpfile_pdb.h b/libgimp/gimpfile_pdb.h
index 7ae02f615c..004548e147 100644
--- a/libgimp/gimpfile_pdb.h
+++ b/libgimp/gimpfile_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_FILE_PDB_H__
+#define __GIMP_FILE_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -46,4 +47,7 @@ gboolean gimp_file_save (GimpRunMode run_mode,
gboolean gimp_file_create_thumbnail (GimpImage *image,
GFile *file);
+
G_END_DECLS
+
+#endif /* __GIMP_FILE_PDB_H__ */
diff --git a/libgimp/gimpfloatingsel_pdb.h b/libgimp/gimpfloatingsel_pdb.h
index ce1d9f2eff..598e9df3d4 100644
--- a/libgimp/gimpfloatingsel_pdb.h
+++ b/libgimp/gimpfloatingsel_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_FLOATING_SEL_PDB_H__
+#define __GIMP_FLOATING_SEL_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -37,4 +38,7 @@ gboolean gimp_floating_sel_to_layer (GimpLayer *floating_sel);
gboolean gimp_floating_sel_attach (GimpLayer *layer,
GimpDrawable *drawable);
+
G_END_DECLS
+
+#endif /* __GIMP_FLOATING_SEL_PDB_H__ */
diff --git a/libgimp/gimpfont_pdb.h b/libgimp/gimpfont_pdb.h
index 3b99d94d8d..1ea45b3a1c 100644
--- a/libgimp/gimpfont_pdb.h
+++ b/libgimp/gimpfont_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_FONT_PDB_H__
+#define __GIMP_FONT_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -34,4 +35,7 @@ G_BEGIN_DECLS
G_GNUC_INTERNAL gchar* _gimp_font_get_lookup_name (GimpFont *font);
GimpFont* gimp_font_get_by_name (const gchar *name);
+
G_END_DECLS
+
+#endif /* __GIMP_FONT_PDB_H__ */
diff --git a/libgimp/gimpfonts_pdb.h b/libgimp/gimpfonts_pdb.h
index e7bd2f2d83..5496525bf3 100644
--- a/libgimp/gimpfonts_pdb.h
+++ b/libgimp/gimpfonts_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_FONTS_PDB_H__
+#define __GIMP_FONTS_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -37,4 +38,7 @@ G_GNUC_INTERNAL gchar* _gimp_fonts_get_custom_configs (gchar **sysconfig,
gchar ***dirs);
GimpFont** gimp_fonts_get_list (const gchar *filter);
+
G_END_DECLS
+
+#endif /* __GIMP_FONTS_PDB_H__ */
diff --git a/libgimp/gimpfontselect_pdb.h b/libgimp/gimpfontselect_pdb.h
index f7bed5f904..3cb1d50992 100644
--- a/libgimp/gimpfontselect_pdb.h
+++ b/libgimp/gimpfontselect_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_FONT_SELECT_PDB_H__
+#define __GIMP_FONT_SELECT_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -39,4 +40,7 @@ gboolean gimp_fonts_close_popup (const gchar *font_callback);
gboolean gimp_fonts_set_popup (const gchar *font_callback,
GimpFont *font);
+
G_END_DECLS
+
+#endif /* __GIMP_FONT_SELECT_PDB_H__ */
diff --git a/libgimp/gimpgimprc_pdb.h b/libgimp/gimpgimprc_pdb.h
index ec39f45657..5d75a48515 100644
--- a/libgimp/gimpgimprc_pdb.h
+++ b/libgimp/gimpgimprc_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_GIMPRC_PDB_H__
+#define __GIMP_GIMPRC_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -41,4 +42,7 @@ gboolean gimp_get_monitor_resolution (gdouble *xres,
G_GNUC_INTERNAL gchar* _gimp_get_color_configuration (void);
gchar* gimp_get_module_load_inhibit (void);
+
G_END_DECLS
+
+#endif /* __GIMP_GIMPRC_PDB_H__ */
diff --git a/libgimp/gimpgradient_pdb.h b/libgimp/gimpgradient_pdb.h
index 956e5489c0..22bd32ad39 100644
--- a/libgimp/gimpgradient_pdb.h
+++ b/libgimp/gimpgradient_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_GRADIENT_PDB_H__
+#define __GIMP_GRADIENT_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -118,4 +119,7 @@ gdouble gimp_gradient_segment_range_move (GimpGradient
gdouble delta,
gboolean control_compress);
+
G_END_DECLS
+
+#endif /* __GIMP_GRADIENT_PDB_H__ */
diff --git a/libgimp/gimpgradients_pdb.h b/libgimp/gimpgradients_pdb.h
index 606eb0a6f1..0db2d9748f 100644
--- a/libgimp/gimpgradients_pdb.h
+++ b/libgimp/gimpgradients_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_GRADIENTS_PDB_H__
+#define __GIMP_GRADIENTS_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -34,4 +35,7 @@ G_BEGIN_DECLS
gboolean gimp_gradients_refresh (void);
GimpGradient** gimp_gradients_get_list (const gchar *filter);
+
G_END_DECLS
+
+#endif /* __GIMP_GRADIENTS_PDB_H__ */
diff --git a/libgimp/gimpgradientselect_pdb.h b/libgimp/gimpgradientselect_pdb.h
index 7e8c36c425..ee9912cf4f 100644
--- a/libgimp/gimpgradientselect_pdb.h
+++ b/libgimp/gimpgradientselect_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_GRADIENT_SELECT_PDB_H__
+#define __GIMP_GRADIENT_SELECT_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -39,4 +40,7 @@ gboolean gimp_gradients_close_popup (const gchar *gradient_callback);
gboolean gimp_gradients_set_popup (const gchar *gradient_callback,
GimpGradient *gradient);
+
G_END_DECLS
+
+#endif /* __GIMP_GRADIENT_SELECT_PDB_H__ */
diff --git a/libgimp/gimpgrouplayer_pdb.h b/libgimp/gimpgrouplayer_pdb.h
index 87ccf47a3d..7699b7a84b 100644
--- a/libgimp/gimpgrouplayer_pdb.h
+++ b/libgimp/gimpgrouplayer_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_GROUP_LAYER_PDB_H__
+#define __GIMP_GROUP_LAYER_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -35,4 +36,7 @@ GimpGroupLayer* gimp_group_layer_new (GimpImage *image,
const gchar *name);
GimpLayer* gimp_group_layer_merge (GimpGroupLayer *group_layer);
+
G_END_DECLS
+
+#endif /* __GIMP_GROUP_LAYER_PDB_H__ */
diff --git a/libgimp/gimphelp_pdb.h b/libgimp/gimphelp_pdb.h
index 508e3998df..850bab4706 100644
--- a/libgimp/gimphelp_pdb.h
+++ b/libgimp/gimphelp_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_HELP_PDB_H__
+#define __GIMP_HELP_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -34,4 +35,7 @@ G_BEGIN_DECLS
gboolean gimp_help (const gchar *help_domain,
const gchar *help_id);
+
G_END_DECLS
+
+#endif /* __GIMP_HELP_PDB_H__ */
diff --git a/libgimp/gimpimage_pdb.h b/libgimp/gimpimage_pdb.h
index 2379359257..946790e5b8 100644
--- a/libgimp/gimpimage_pdb.h
+++ b/libgimp/gimpimage_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_IMAGE_PDB_H__
+#define __GIMP_IMAGE_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -203,4 +204,7 @@ gboolean gimp_image_policy_rotate (GimpImage
gboolean gimp_image_policy_color_profile (GimpImage *image,
gboolean interactive);
+
G_END_DECLS
+
+#endif /* __GIMP_IMAGE_PDB_H__ */
diff --git a/libgimp/gimpimageautocrop_pdb.h b/libgimp/gimpimageautocrop_pdb.h
index 93e8ec3fee..6c0813ddb4 100644
--- a/libgimp/gimpimageautocrop_pdb.h
+++ b/libgimp/gimpimageautocrop_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_IMAGE_AUTOCROP_PDB_H__
+#define __GIMP_IMAGE_AUTOCROP_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -36,4 +37,7 @@ gboolean gimp_image_autocrop (GimpImage *image,
gboolean gimp_image_autocrop_selected_layers (GimpImage *image,
GimpDrawable *drawable);
+
G_END_DECLS
+
+#endif /* __GIMP_IMAGE_AUTOCROP_PDB_H__ */
diff --git a/libgimp/gimpimagecolorprofile_pdb.h b/libgimp/gimpimagecolorprofile_pdb.h
index 08492dd22e..c47a1fb5bc 100644
--- a/libgimp/gimpimagecolorprofile_pdb.h
+++ b/libgimp/gimpimagecolorprofile_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_IMAGE_COLOR_PROFILE_PDB_H__
+#define __GIMP_IMAGE_COLOR_PROFILE_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -57,4 +58,7 @@ gboolean gimp_image_convert_color_profile_from_file (GimpImage
GimpColorRenderingIntent intent,
gboolean bpc);
+
G_END_DECLS
+
+#endif /* __GIMP_IMAGE_COLOR_PROFILE_PDB_H__ */
diff --git a/libgimp/gimpimageconvert_pdb.h b/libgimp/gimpimageconvert_pdb.h
index 5eee48739e..51a6c5383f 100644
--- a/libgimp/gimpimageconvert_pdb.h
+++ b/libgimp/gimpimageconvert_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_IMAGE_CONVERT_PDB_H__
+#define __GIMP_IMAGE_CONVERT_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -46,4 +47,7 @@ gboolean gimp_image_convert_set_dither_matrix (gint width,
gboolean gimp_image_convert_precision (GimpImage *image,
GimpPrecision precision);
+
G_END_DECLS
+
+#endif /* __GIMP_IMAGE_CONVERT_PDB_H__ */
diff --git a/libgimp/gimpimagegrid_pdb.h b/libgimp/gimpimagegrid_pdb.h
index 46e3048eb4..e0dfbdb282 100644
--- a/libgimp/gimpimagegrid_pdb.h
+++ b/libgimp/gimpimagegrid_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_IMAGE_GRID_PDB_H__
+#define __GIMP_IMAGE_GRID_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -53,4 +54,7 @@ GimpGridStyle gimp_image_grid_get_style (GimpImage *image);
gboolean gimp_image_grid_set_style (GimpImage *image,
GimpGridStyle style);
+
G_END_DECLS
+
+#endif /* __GIMP_IMAGE_GRID_PDB_H__ */
diff --git a/libgimp/gimpimageguides_pdb.h b/libgimp/gimpimageguides_pdb.h
index f1b871d952..38a6baf42f 100644
--- a/libgimp/gimpimageguides_pdb.h
+++ b/libgimp/gimpimageguides_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_IMAGE_GUIDES_PDB_H__
+#define __GIMP_IMAGE_GUIDES_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -44,4 +45,7 @@ GimpOrientationType gimp_image_get_guide_orientation (GimpImage *image,
gint gimp_image_get_guide_position (GimpImage *image,
guint guide);
+
G_END_DECLS
+
+#endif /* __GIMP_IMAGE_GUIDES_PDB_H__ */
diff --git a/libgimp/gimpimagesamplepoints_pdb.h b/libgimp/gimpimagesamplepoints_pdb.h
index 15c61c1a8c..7c12a4fde6 100644
--- a/libgimp/gimpimagesamplepoints_pdb.h
+++ b/libgimp/gimpimagesamplepoints_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_IMAGE_SAMPLE_POINTS_PDB_H__
+#define __GIMP_IMAGE_SAMPLE_POINTS_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -42,4 +43,7 @@ gint gimp_image_get_sample_point_position (GimpImage *image,
guint sample_point,
gint *position_y);
+
G_END_DECLS
+
+#endif /* __GIMP_IMAGE_SAMPLE_POINTS_PDB_H__ */
diff --git a/libgimp/gimpimageselect_pdb.h b/libgimp/gimpimageselect_pdb.h
index 2121c59a4a..dc8b887a9f 100644
--- a/libgimp/gimpimageselect_pdb.h
+++ b/libgimp/gimpimageselect_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_IMAGE_SELECT_PDB_H__
+#define __GIMP_IMAGE_SELECT_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -68,4 +69,7 @@ gboolean gimp_image_select_item (GimpImage *image,
GimpChannelOps operation,
GimpItem *item);
+
G_END_DECLS
+
+#endif /* __GIMP_IMAGE_SELECT_PDB_H__ */
diff --git a/libgimp/gimpimagetransform_pdb.h b/libgimp/gimpimagetransform_pdb.h
index fce239fb8d..f82c018682 100644
--- a/libgimp/gimpimagetransform_pdb.h
+++ b/libgimp/gimpimagetransform_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_IMAGE_TRANSFORM_PDB_H__
+#define __GIMP_IMAGE_TRANSFORM_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -50,4 +51,7 @@ gboolean gimp_image_flip (GimpImage *image,
gboolean gimp_image_rotate (GimpImage *image,
GimpRotationType rotate_type);
+
G_END_DECLS
+
+#endif /* __GIMP_IMAGE_TRANSFORM_PDB_H__ */
diff --git a/libgimp/gimpimageundo_pdb.h b/libgimp/gimpimageundo_pdb.h
index 17f0ed16f5..3caa0f2227 100644
--- a/libgimp/gimpimageundo_pdb.h
+++ b/libgimp/gimpimageundo_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_IMAGE_UNDO_PDB_H__
+#define __GIMP_IMAGE_UNDO_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -39,4 +40,7 @@ gboolean gimp_image_undo_enable (GimpImage *image);
gboolean gimp_image_undo_freeze (GimpImage *image);
gboolean gimp_image_undo_thaw (GimpImage *image);
+
G_END_DECLS
+
+#endif /* __GIMP_IMAGE_UNDO_PDB_H__ */
diff --git a/libgimp/gimpitem_pdb.h b/libgimp/gimpitem_pdb.h
index a869b215a2..58a858ef4e 100644
--- a/libgimp/gimpitem_pdb.h
+++ b/libgimp/gimpitem_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_ITEM_PDB_H__
+#define __GIMP_ITEM_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -77,4 +78,7 @@ GimpParasite* gimp_item_get_parasite (GimpItem *item,
const gchar *name);
gchar** gimp_item_get_parasite_list (GimpItem *item);
+
G_END_DECLS
+
+#endif /* __GIMP_ITEM_PDB_H__ */
diff --git a/libgimp/gimpitemtransform_pdb.h b/libgimp/gimpitemtransform_pdb.h
index 995bfda8a7..02890ea773 100644
--- a/libgimp/gimpitemtransform_pdb.h
+++ b/libgimp/gimpitemtransform_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_ITEM_TRANSFORM_PDB_H__
+#define __GIMP_ITEM_TRANSFORM_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -89,4 +90,7 @@ GimpItem* gimp_item_transform_matrix (GimpItem *item,
gdouble coeff_2_1,
gdouble coeff_2_2);
+
G_END_DECLS
+
+#endif /* __GIMP_ITEM_TRANSFORM_PDB_H__ */
diff --git a/libgimp/gimplayer_pdb.h b/libgimp/gimplayer_pdb.h
index a2ed8cc645..d1f3bf8b19 100644
--- a/libgimp/gimplayer_pdb.h
+++ b/libgimp/gimplayer_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_LAYER_PDB_H__
+#define __GIMP_LAYER_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -96,4 +97,7 @@ GimpLayerCompositeMode gimp_layer_get_composite_mode (GimpLayer *
gboolean gimp_layer_set_composite_mode (GimpLayer *layer,
GimpLayerCompositeMode composite_mode);
+
G_END_DECLS
+
+#endif /* __GIMP_LAYER_PDB_H__ */
diff --git a/libgimp/gimpmessage_pdb.h b/libgimp/gimpmessage_pdb.h
index 20874c84aa..a23fe59ce1 100644
--- a/libgimp/gimpmessage_pdb.h
+++ b/libgimp/gimpmessage_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_MESSAGE_PDB_H__
+#define __GIMP_MESSAGE_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -35,4 +36,7 @@ gboolean gimp_message (const gchar *message
GimpMessageHandlerType gimp_message_get_handler (void);
gboolean gimp_message_set_handler (GimpMessageHandlerType handler);
+
G_END_DECLS
+
+#endif /* __GIMP_MESSAGE_PDB_H__ */
diff --git a/libgimp/gimppainttools_pdb.h b/libgimp/gimppainttools_pdb.h
index 2dd04add33..3c42379a26 100644
--- a/libgimp/gimppainttools_pdb.h
+++ b/libgimp/gimppainttools_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_PAINT_TOOLS_PDB_H__
+#define __GIMP_PAINT_TOOLS_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -102,4 +103,7 @@ gboolean gimp_smudge_default (GimpDrawable *drawable,
gsize num_strokes,
const gdouble *strokes);
+
G_END_DECLS
+
+#endif /* __GIMP_PAINT_TOOLS_PDB_H__ */
diff --git a/libgimp/gimppalette_pdb.h b/libgimp/gimppalette_pdb.h
index 248f4d8f2e..cd277f24fa 100644
--- a/libgimp/gimppalette_pdb.h
+++ b/libgimp/gimppalette_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_PALETTE_PDB_H__
+#define __GIMP_PALETTE_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -62,4 +63,7 @@ G_GNUC_INTERNAL gboolean _gimp_palette_set_bytes (GimpPalette *palette,
const Babl *format,
GBytes *colormap);
+
G_END_DECLS
+
+#endif /* __GIMP_PALETTE_PDB_H__ */
diff --git a/libgimp/gimppalettes_pdb.h b/libgimp/gimppalettes_pdb.h
index b3b0759ab6..c49207dc29 100644
--- a/libgimp/gimppalettes_pdb.h
+++ b/libgimp/gimppalettes_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_PALETTES_PDB_H__
+#define __GIMP_PALETTES_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -34,4 +35,7 @@ G_BEGIN_DECLS
gboolean gimp_palettes_refresh (void);
GimpPalette** gimp_palettes_get_list (const gchar *filter);
+
G_END_DECLS
+
+#endif /* __GIMP_PALETTES_PDB_H__ */
diff --git a/libgimp/gimppaletteselect_pdb.h b/libgimp/gimppaletteselect_pdb.h
index 14703a4b12..31f62dff45 100644
--- a/libgimp/gimppaletteselect_pdb.h
+++ b/libgimp/gimppaletteselect_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_PALETTE_SELECT_PDB_H__
+#define __GIMP_PALETTE_SELECT_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -39,4 +40,7 @@ gboolean gimp_palettes_close_popup (const gchar *palette_callback);
gboolean gimp_palettes_set_popup (const gchar *palette_callback,
GimpPalette *palette);
+
G_END_DECLS
+
+#endif /* __GIMP_PALETTE_SELECT_PDB_H__ */
diff --git a/libgimp/gimppath_pdb.h b/libgimp/gimppath_pdb.h
index ec29aad936..7b1ca34c59 100644
--- a/libgimp/gimppath_pdb.h
+++ b/libgimp/gimppath_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_PATH_PDB_H__
+#define __GIMP_PATH_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -121,4 +122,7 @@ gint gimp_path_bezier_stroke_new_ellipse (GimpPath *pa
gdouble radius_y,
gdouble angle);
+
G_END_DECLS
+
+#endif /* __GIMP_PATH_PDB_H__ */
diff --git a/libgimp/gimppattern_pdb.h b/libgimp/gimppattern_pdb.h
index a765407743..1b917a198e 100644
--- a/libgimp/gimppattern_pdb.h
+++ b/libgimp/gimppattern_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_PATTERN_PDB_H__
+#define __GIMP_PATTERN_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -42,4 +43,7 @@ G_GNUC_INTERNAL gboolean _gimp_pattern_get_pixels (GimpPattern *pattern,
gint *bpp,
GBytes **color_bytes);
+
G_END_DECLS
+
+#endif /* __GIMP_PATTERN_PDB_H__ */
diff --git a/libgimp/gimppatterns_pdb.h b/libgimp/gimppatterns_pdb.h
index c278522e9e..91e8156240 100644
--- a/libgimp/gimppatterns_pdb.h
+++ b/libgimp/gimppatterns_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_PATTERNS_PDB_H__
+#define __GIMP_PATTERNS_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -34,4 +35,7 @@ G_BEGIN_DECLS
gboolean gimp_patterns_refresh (void);
GimpPattern** gimp_patterns_get_list (const gchar *filter);
+
G_END_DECLS
+
+#endif /* __GIMP_PATTERNS_PDB_H__ */
diff --git a/libgimp/gimppatternselect_pdb.h b/libgimp/gimppatternselect_pdb.h
index 68b3284177..6c29d5ee86 100644
--- a/libgimp/gimppatternselect_pdb.h
+++ b/libgimp/gimppatternselect_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_PATTERN_SELECT_PDB_H__
+#define __GIMP_PATTERN_SELECT_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -39,4 +40,7 @@ gboolean gimp_patterns_close_popup (const gchar *pattern_callback);
gboolean gimp_patterns_set_popup (const gchar *pattern_callback,
GimpPattern *pattern);
+
G_END_DECLS
+
+#endif /* __GIMP_PATTERN_SELECT_PDB_H__ */
diff --git a/libgimp/gimppdb_pdb.h b/libgimp/gimppdb_pdb.h
index 66fe09c053..03d37e6564 100644
--- a/libgimp/gimppdb_pdb.h
+++ b/libgimp/gimppdb_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_PDB_PDB_H__
+#define __GIMP_PDB_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -103,4 +104,7 @@ G_GNUC_INTERNAL gboolean _gimp_pdb_get_data (const gcha
G_GNUC_INTERNAL gboolean _gimp_pdb_set_data (const gchar *identifier,
GBytes *data);
+
G_END_DECLS
+
+#endif /* __GIMP_PDB_PDB_H__ */
diff --git a/libgimp/gimpplugin-private.h b/libgimp/gimpplugin-private.h
index 157e30e88a..a8a6953d40 100644
--- a/libgimp/gimpplugin-private.h
+++ b/libgimp/gimpplugin-private.h
@@ -19,10 +19,12 @@
* .
*/
-#pragma once
+#ifndef __GIMP_PLUG_IN_PRIVATE_H__
+#define __GIMP_PLUG_IN_PRIVATE_H__
G_BEGIN_DECLS
+
G_GNUC_INTERNAL void _gimp_plug_in_query (GimpPlugIn *plug_in);
G_GNUC_INTERNAL void _gimp_plug_in_init (GimpPlugIn *plug_in);
G_GNUC_INTERNAL void _gimp_plug_in_run (GimpPlugIn *plug_in);
@@ -59,4 +61,7 @@ G_GNUC_INTERNAL GimpResource * _gimp_plug_in_get_resource (GimpPlugIn
G_GNUC_INTERNAL gboolean _gimp_plug_in_manage_memory_manually (GimpPlugIn *plug_in);
+
G_END_DECLS
+
+#endif /* __GIMP_PLUG_IN_PRIVATE_H__ */
diff --git a/libgimp/gimpplugin_pdb.h b/libgimp/gimpplugin_pdb.h
index f63a0ccea0..6852ed6ffa 100644
--- a/libgimp/gimpplugin_pdb.h
+++ b/libgimp/gimpplugin_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_PLUG_IN_PDB_H__
+#define __GIMP_PLUG_IN_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -38,4 +39,7 @@ G_GNUC_INTERNAL gboolean _gimp_plug_in_menu_branch_register (const g
G_GNUC_INTERNAL gboolean _gimp_plug_in_set_pdb_error_handler (GimpPDBErrorHandler handler);
G_GNUC_INTERNAL GimpPDBErrorHandler _gimp_plug_in_get_pdb_error_handler (void);
+
G_END_DECLS
+
+#endif /* __GIMP_PLUG_IN_PDB_H__ */
diff --git a/libgimp/gimpprogress_pdb.h b/libgimp/gimpprogress_pdb.h
index ccf72c70aa..6a2060360c 100644
--- a/libgimp/gimpprogress_pdb.h
+++ b/libgimp/gimpprogress_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_PROGRESS_PDB_H__
+#define __GIMP_PROGRESS_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -42,4 +43,7 @@ G_GNUC_INTERNAL gboolean _gimp_progress_install (const gchar *progress_
G_GNUC_INTERNAL gboolean _gimp_progress_uninstall (const gchar *progress_callback);
gboolean gimp_progress_cancel (const gchar *progress_callback);
+
G_END_DECLS
+
+#endif /* __GIMP_PROGRESS_PDB_H__ */
diff --git a/libgimp/gimpresource_pdb.h b/libgimp/gimpresource_pdb.h
index efe56088f1..3722440b51 100644
--- a/libgimp/gimpresource_pdb.h
+++ b/libgimp/gimpresource_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_RESOURCE_PDB_H__
+#define __GIMP_RESOURCE_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -53,4 +54,7 @@ gboolean gimp_resource_rename (GimpResource *
const gchar *new_name);
gboolean gimp_resource_delete (GimpResource *resource);
+
G_END_DECLS
+
+#endif /* __GIMP_RESOURCE_PDB_H__ */
diff --git a/libgimp/gimpselection_pdb.h b/libgimp/gimpselection_pdb.h
index db092451e8..8c1c96597f 100644
--- a/libgimp/gimpselection_pdb.h
+++ b/libgimp/gimpselection_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_SELECTION_PDB_H__
+#define __GIMP_SELECTION_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -62,4 +63,7 @@ gboolean gimp_selection_shrink (GimpImage *image,
gboolean gimp_selection_flood (GimpImage *image);
GimpChannel* gimp_selection_save (GimpImage *image);
+
G_END_DECLS
+
+#endif /* __GIMP_SELECTION_PDB_H__ */
diff --git a/libgimp/gimptextlayer_pdb.h b/libgimp/gimptextlayer_pdb.h
index 4ca30a2766..8b3ad5b0da 100644
--- a/libgimp/gimptextlayer_pdb.h
+++ b/libgimp/gimptextlayer_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_TEXT_LAYER_PDB_H__
+#define __GIMP_TEXT_LAYER_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -84,4 +85,7 @@ gboolean gimp_text_layer_resize (GimpTextLayer
gdouble width,
gdouble height);
+
G_END_DECLS
+
+#endif /* __GIMP_TEXT_LAYER_PDB_H__ */
diff --git a/libgimp/gimptexttool_pdb.h b/libgimp/gimptexttool_pdb.h
index fc3c722074..458cf78200 100644
--- a/libgimp/gimptexttool_pdb.h
+++ b/libgimp/gimptexttool_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_TEXT_TOOL_PDB_H__
+#define __GIMP_TEXT_TOOL_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -48,4 +49,7 @@ gboolean gimp_text_get_extents_font (const gchar *text,
gint *ascent,
gint *descent);
+
G_END_DECLS
+
+#endif /* __GIMP_TEXT_TOOL_PDB_H__ */
diff --git a/libgimp/gimpunit_pdb.h b/libgimp/gimpunit_pdb.h
index 936f73fc5a..d5f9d70081 100644
--- a/libgimp/gimpunit_pdb.h
+++ b/libgimp/gimpunit_pdb.h
@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
-#pragma once
-
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only can be included directly."
#endif
+#ifndef __GIMP_UNIT_PDB_H__
+#define __GIMP_UNIT_PDB_H__
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -45,4 +46,7 @@ G_GNUC_INTERNAL gboolean _gimp_unit_get_deletion_flag (GimpUnit *unit);
G_GNUC_INTERNAL gboolean _gimp_unit_set_deletion_flag (GimpUnit *unit,
gboolean deletion_flag);
+
G_END_DECLS
+
+#endif /* __GIMP_UNIT_PDB_H__ */
diff --git a/libgimpbase/gimpbase-private.h b/libgimpbase/gimpbase-private.h
index 017581467c..e8db03afb3 100644
--- a/libgimpbase/gimpbase-private.h
+++ b/libgimpbase/gimpbase-private.h
@@ -19,7 +19,9 @@
* .
*/
-#pragma once
+#ifndef __GIMP_BASE_PRIVATE_H__
+#define __GIMP_BASE_PRIVATE_H__
+
#include
#include
@@ -72,3 +74,5 @@ void gimp_base_exit (void);
void gimp_base_compat_enums_init (void);
G_END_DECLS
+
+#endif /* __GIMP_BASE_PRIVATE_H__ */
diff --git a/libgimpbase/gimpbase.h b/libgimpbase/gimpbase.h
index f58823b02c..b0f01a5c0a 100644
--- a/libgimpbase/gimpbase.h
+++ b/libgimpbase/gimpbase.h
@@ -16,7 +16,8 @@
* .
*/
-#pragma once
+#ifndef __GIMP_BASE_H__
+#define __GIMP_BASE_H__
#define __GIMP_BASE_H_INSIDE__
@@ -41,3 +42,5 @@
#include
#undef __GIMP_BASE_H_INSIDE__
+
+#endif /* __GIMP_BASE_H__ */
diff --git a/libgimpbase/gimpbaseenums.h b/libgimpbase/gimpbaseenums.h
index 9771217c20..f8ff4a3187 100644
--- a/libgimpbase/gimpbaseenums.h
+++ b/libgimpbase/gimpbaseenums.h
@@ -16,7 +16,8 @@
* .
*/
-#pragma once
+#ifndef __GIMP_BASE_ENUMS_H__
+#define __GIMP_BASE_ENUMS_H__
/**
@@ -1363,4 +1364,7 @@ typedef enum
GIMP_FILE_CHOOSER_ACTION_CREATE_FOLDER = 3,
} GimpFileChooserAction;
+
G_END_DECLS
+
+#endif /* __GIMP_BASE_ENUMS_H__ */
diff --git a/libgimpbase/gimpbasetypes.h b/libgimpbase/gimpbasetypes.h
index c3109ed982..be1612147f 100644
--- a/libgimpbase/gimpbasetypes.h
+++ b/libgimpbase/gimpbasetypes.h
@@ -16,7 +16,9 @@
* .
*/
-#pragma once
+#ifndef __GIMP_BASE_TYPES_H__
+#define __GIMP_BASE_TYPES_H__
+
#include
#include
@@ -102,4 +104,7 @@ void gimp_flags_set_value_descriptions (GType fl
const GimpFlagsDesc *descriptions);
const GimpFlagsDesc * gimp_flags_get_value_descriptions (GType flags_type);
+
G_END_DECLS
+
+#endif /* __GIMP_BASE_TYPES_H__ */
diff --git a/libgimpbase/gimpcpuaccel-private.h b/libgimpbase/gimpcpuaccel-private.h
index 1436544ddf..df46b7a4c6 100644
--- a/libgimpbase/gimpcpuaccel-private.h
+++ b/libgimpbase/gimpcpuaccel-private.h
@@ -18,10 +18,15 @@
* .
*/
-#pragma once
+#ifndef __GIMP_CPU_ACCEL_PRIVATE_H__
+#define __GIMP_CPU_ACCEL_PRIVATE_H__
G_BEGIN_DECLS
+
void gimp_cpu_accel_set_use (gboolean use);
+
G_END_DECLS
+
+#endif /* __GIMP_CPU_ACCEL_PRIVATE_H__ */
diff --git a/libgimpbase/gimpunit.h b/libgimpbase/gimpunit.h
index e1b725b276..96b33d6df3 100644
--- a/libgimpbase/gimpunit.h
+++ b/libgimpbase/gimpunit.h
@@ -23,7 +23,8 @@
#error "Only can be included directly."
#endif
-#pragma once
+#ifndef __GIMP_UNIT_H__
+#define __GIMP_UNIT_H__
G_BEGIN_DECLS
@@ -103,3 +104,5 @@ gboolean gimp_param_spec_unit_pixel_allowed (GParamSpec *pspec);
gboolean gimp_param_spec_unit_percent_allowed (GParamSpec *pspec);
G_END_DECLS
+
+#endif /* __GIMP_UNIT_H__ */
diff --git a/pdb/lib.pl b/pdb/lib.pl
index 5cdb1c08c8..8fe10e54f6 100644
--- a/pdb/lib.pl
+++ b/pdb/lib.pl
@@ -780,13 +780,15 @@ LGPL
print HFILE $lgpl_top;
print HFILE " * $hname\n";
print HFILE $lgpl_bottom;
+ my $guard = "__GIMP_\U$group\E_PDB_H__";
print HFILE < can be included directly."
#endif
+#ifndef $guard
+#define $guard
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -794,7 +796,10 @@ G_BEGIN_DECLS
$body
+
G_END_DECLS
+
+#endif /* $guard */
HEADER
close HFILE;
&write_file($hfile, $destdir);