[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] dfa: move definition of __attribute__ back into dfa.h
From: |
Jim Meyering |
Subject: |
[PATCH] dfa: move definition of __attribute__ back into dfa.h |
Date: |
Thu, 08 Apr 2010 10:10:52 +0200 |
Arnold reported this privately, so FYI,
>From 567b94d9c68c6f33215db925d25e3a442278a59c Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Thu, 8 Apr 2010 10:08:50 +0200
Subject: [PATCH] dfa: move definition of __attribute__ back into dfa.h
* src/dfa.c (__attribute__): Move definition back to...
* src/dfa.h: ... this file. It is essential for non-gcc compilers.
Reported by Arnold Robbins.
---
src/dfa.c | 4 ----
src/dfa.h | 4 ++++
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/dfa.c b/src/dfa.c
index b165fed..92c9f68 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -84,10 +84,6 @@
/* Number of ints required to hold a bit for every character. */
#define CHARCLASS_INTS ((NOTCHAR + INTBITS - 1) / INTBITS)
-#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 6) || __STRICT_ANSI__
-# define __attribute__(x)
-#endif
-
/* Sets of unsigned characters are stored as bit vectors in arrays of ints. */
typedef int charclass[CHARCLASS_INTS];
diff --git a/src/dfa.h b/src/dfa.h
index 40bb1b1..c107930 100644
--- a/src/dfa.h
+++ b/src/dfa.h
@@ -18,6 +18,10 @@
/* Written June, 1988 by Mike Haertel */
+#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 6) || __STRICT_ANSI__
+# define __attribute__(x)
+#endif
+
/* Element of a list of strings, at least one of which is known to
appear in any R.E. matching the DFA. */
struct dfamust
--
1.7.1.rc0.239.g8b27e
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] dfa: move definition of __attribute__ back into dfa.h,
Jim Meyering <=