summaryrefslogtreecommitdiff
path: root/gcc/tsystem.h
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-05 05:17:16 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-05 05:17:16 +0000
commitf457672942b12e4091741142ca2f6894ae3a50ce (patch)
tree65c1a41f79dbdb5644f68e8c8d029886b1d4761b /gcc/tsystem.h
parent0214f1b484ffc15cf8ab148e691b5ced99ff556b (diff)
downloadgcc-f457672942b12e4091741142ca2f6894ae3a50ce.tar.gz
* tsystem.h: Add the prototype of strlen.
* unwind-pe.h (read_encoded_value_with_base): Add an appropriate cast to handle a case where the pointer size is smaller than sizeof (int). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73265 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tsystem.h')
-rw-r--r--gcc/tsystem.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/tsystem.h b/gcc/tsystem.h
index d76c1ba62cc..f24bab78cc5 100644
--- a/gcc/tsystem.h
+++ b/gcc/tsystem.h
@@ -62,6 +62,10 @@ extern int atexit (void (*)(void));
extern void abort (void) __attribute__ ((__noreturn__));
#endif
+#ifndef strlen
+extern size_t strlen (const char *);
+#endif
+
#else /* ! inhibit_libc */
/* We disable this when inhibit_libc, so that gcc can still be built without
needing header files first. */