From 1ba5d89350a061b91b74e2d6a8474f7b247ad622 Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Mon, 21 Oct 2002 18:49:39 +0000 Subject: [PATCH] Define macro UNUSED as empty if not using gcc. --- gedcom/gedcom_internal.h | 4 ++++ gom/gom_internal.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gedcom/gedcom_internal.h b/gedcom/gedcom_internal.h index a8c3044..9807ecb 100644 --- a/gedcom/gedcom_internal.h +++ b/gedcom/gedcom_internal.h @@ -49,7 +49,11 @@ #define GEDCOM_INTERNAL 1 +#ifdef __GNUC__ #define UNUSED __attribute__((unused)) +#else +#define UNUSED +#endif struct tag_struct { char *string; diff --git a/gom/gom_internal.h b/gom/gom_internal.h index d00ca74..86e34ab 100644 --- a/gom/gom_internal.h +++ b/gom/gom_internal.h @@ -36,7 +36,11 @@ #define _(string) gettext(string) #define N_(string) (string) +#ifdef __GNUC__ #define UNUSED __attribute__((unused)) +#else +#define UNUSED +#endif typedef enum { T_NULL, -- 2.30.2