summaryrefslogtreecommitdiff
path: root/libiberty/regex.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-16 21:49:25 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-16 21:49:25 +0000
commit43eb13f74ccae38d7f1108c96f49cee6a0118b28 (patch)
tree05882df0794c69e8e3496a2a67b487dc28cdf6f2 /libiberty/regex.c
parentb808f0238bb9876d0df5fa06671f6e7b2dac5800 (diff)
downloadgcc-43eb13f74ccae38d7f1108c96f49cee6a0118b28.tar.gz
* regex.c: Check defined(__STDC__) || defined(HAVE_STRINGIZE)
to determine whether ISO CPP token pasting is available. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47107 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/regex.c')
-rw-r--r--libiberty/regex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libiberty/regex.c b/libiberty/regex.c
index 5ead8b642d6..375575a5cfe 100644
--- a/libiberty/regex.c
+++ b/libiberty/regex.c
@@ -612,7 +612,7 @@ typedef enum
# define UCHAR_T unsigned char
# define COMPILED_BUFFER_VAR bufp->buffer
# define OFFSET_ADDRESS_SIZE 2
-# if defined __STDC__ && __STDC__
+# if defined (__STDC__) || defined (HAVE_STRINGIZE)
# define PREFIX(name) byte_##name
# else
# define PREFIX(name) byte_/**/name
@@ -626,7 +626,7 @@ typedef enum
# define COMPILED_BUFFER_VAR wc_buffer
# define OFFSET_ADDRESS_SIZE 1 /* the size which STORE_NUMBER macro use */
# define CHAR_CLASS_SIZE ((__alignof__(wctype_t)+sizeof(wctype_t))/sizeof(CHAR_T)+1)
-# if defined __STDC__ && __STDC__
+# if defined (__STDC__) || defined (HAVE_STRINGIZE)
# define PREFIX(name) wcs_##name
# define ARG_PREFIX(name) c##name
# else