From c8caea8a8510c31fc028501acf44734f48b8dc3b Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 12 Dec 2010 15:51:06 +0100 Subject: Cleanup header defines --- src/gallery-utils.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/gallery-utils.h') diff --git a/src/gallery-utils.h b/src/gallery-utils.h index b354a38..521a1fe 100644 --- a/src/gallery-utils.h +++ b/src/gallery-utils.h @@ -15,14 +15,15 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ - -#ifdef __cplusplus - extern "C" { -#endif +#ifndef __CGG__GALLERY_UTILS_H__ +#define __CGG__GALLERY_UTILS_H__ #include #include +G_BEGIN_DECLS + + #define IS_DIR_SEP(ch) ((ch) == '/' || (ch) == '~') #define IS_EQUAL_SIGN(ch) ((ch) == '=') #define GET_EXT(s) strrchr (s, '.') @@ -79,6 +80,6 @@ void log_error (const gchar *format, ...) G_GNUC_PRINTF (1, 2); gboolean needs_update (const gchar *source, const gchar *dest); -#ifdef __cplusplus - } -#endif +G_END_DECLS + +#endif /* __CGG__GALLERY_UTILS_H__ */ -- cgit v1.2.3