summaryrefslogtreecommitdiff
path: root/libcpp/include
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-27 21:59:38 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-27 21:59:38 +0000
commitfe4dcd90d5cd54e327ca81db697b90ca3d93af70 (patch)
tree25e1fb0626b94baa0060522367379a530b0650f8 /libcpp/include
parent66bab57a3ff8ab17b1b3388ccda13869e39806a6 (diff)
downloadgcc-fe4dcd90d5cd54e327ca81db697b90ca3d93af70.tar.gz
* internal.h: Replace all uses of uchar with unsigned char.
* include/cpp-id-data.h: Likewise. Guard typedef of uchar with !IN_GCC, so uchar is only defined whilst building libcpp. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91394 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/include')
-rw-r--r--libcpp/include/cpp-id-data.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libcpp/include/cpp-id-data.h b/libcpp/include/cpp-id-data.h
index bdeaeba5182..23fef1afbba 100644
--- a/libcpp/include/cpp-id-data.h
+++ b/libcpp/include/cpp-id-data.h
@@ -18,10 +18,11 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "cpplib.h"
-#ifndef HAVE_UCHAR
+#if !defined (HAVE_UCHAR) && !defined (IN_GCC)
typedef unsigned char uchar;
#endif
-#define U (const uchar *) /* Intended use: U"string" */
+
+#define U (const unsigned char *) /* Intended use: U"string" */
/* Chained list of answers to an assertion. */
struct answer GTY(())
@@ -48,7 +49,7 @@ struct cpp_macro GTY(())
union cpp_macro_u
{
cpp_token * GTY ((tag ("0"), length ("%0.count"))) tokens;
- const uchar * GTY ((tag ("1"))) text;
+ const unsigned char * GTY ((tag ("1"))) text;
} GTY ((desc ("%1.traditional"))) exp;
/* Definition line number. */