diff options
Diffstat (limited to 'src/gallery-utils.h')
| -rw-r--r-- | src/gallery-utils.h | 15 |
1 files changed, 8 insertions, 7 deletions
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 <glib.h> #include <string.h> +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__ */ |
