summaryrefslogtreecommitdiff
path: root/pkgtools/digest/files/config.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools/digest/files/config.h.in')
-rw-r--r--pkgtools/digest/files/config.h.in14
1 files changed, 8 insertions, 6 deletions
diff --git a/pkgtools/digest/files/config.h.in b/pkgtools/digest/files/config.h.in
index 9a9e1178d75..40dec55f9da 100644
--- a/pkgtools/digest/files/config.h.in
+++ b/pkgtools/digest/files/config.h.in
@@ -130,19 +130,21 @@
#undef uint8_t
-
-#ifndef HAVE___ATTRIBUTE__
-# define __attribute__(x)
-#endif
-
#ifdef HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
-#ifndef __IDSTRING
+#if defined(__GNUC__) && !defined(__IDSTRING)
+#if (__GNUC__ == 2 && __GNUC_MINOR >= 7) || (__GNUC__ > 2)
# define __IDSTRING(name,string) \
static const char name[] __attribute__((__unused__)) = string
#endif
+#endif
+
+#ifndef __IDSTRING
+# define __IDSTRING(name,string) \
+ static const char name[] = string
+#endif
#ifndef __RCSID
# define __RCSID(_s) __IDSTRING(rcsid,_s)