OSDN Git Service

* regex.c: Check defined(__STDC__) || defined(HAVE_STRINGIZE)
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Nov 2001 21:49:25 +0000 (21:49 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Nov 2001 21:49:25 +0000 (21:49 +0000)
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

libiberty/ChangeLog
libiberty/regex.c

index 933cc38..2c392e6 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * regex.c: Check defined(__STDC__) || defined(HAVE_STRINGIZE)
+       to determine whether ISO CPP token pasting is available.
+
 Thu Nov 15 11:06:25 2001  Jeffrey A Law  (law@cygnus.com)
 
        * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
index 5ead8b6..375575a 100644 (file)
@@ -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