Define macro UNUSED as empty if not using gcc.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Mon, 21 Oct 2002 18:49:39 +0000 (18:49 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Mon, 21 Oct 2002 18:49:39 +0000 (18:49 +0000)
gedcom/gedcom_internal.h
gom/gom_internal.h

index a8c3044c1d2e85a5c0ed865b49c06687e3c6e676..9807ecb759f22678807ada7d9f364fe8f0d410d7 100644 (file)
 
 #define GEDCOM_INTERNAL 1
 
 
 #define GEDCOM_INTERNAL 1
 
+#ifdef __GNUC__
 #define UNUSED __attribute__((unused))
 #define UNUSED __attribute__((unused))
+#else
+#define UNUSED
+#endif
 
 struct tag_struct {
   char *string;
 
 struct tag_struct {
   char *string;
index d00ca74ed6217d894e9f541c612d477ede41d4f8..86e34ab0b67ecbcfc33f139c1286b149de18dd72 100644 (file)
 #define _(string) gettext(string)
 #define N_(string) (string)
 
 #define _(string) gettext(string)
 #define N_(string) (string)
 
+#ifdef __GNUC__
 #define UNUSED __attribute__((unused))
 #define UNUSED __attribute__((unused))
+#else
+#define UNUSED
+#endif
 
 typedef enum {
   T_NULL,
 
 typedef enum {
   T_NULL,