aboutsummaryrefslogtreecommitdiff
path: root/gnulib/import/dirent.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'gnulib/import/dirent.in.h')
-rw-r--r--gnulib/import/dirent.in.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/gnulib/import/dirent.in.h b/gnulib/import/dirent.in.h
index f7c2681..6fa44f0 100644
--- a/gnulib/import/dirent.in.h
+++ b/gnulib/import/dirent.in.h
@@ -57,10 +57,12 @@ typedef struct gl_directory DIR;
/* The __attribute__ feature is available in gcc versions 2.5 and later.
The attribute __pure__ was added in gcc 2.96. */
-#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
-# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
-#else
-# define _GL_ATTRIBUTE_PURE /* empty */
+#ifndef _GL_ATTRIBUTE_PURE
+# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
+# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
+# else
+# define _GL_ATTRIBUTE_PURE /* empty */
+# endif
#endif
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */