gdb
[deliverable/binutils-gdb.git] / gdb / gdb_string.h
CommitLineData
c906108c 1/* Portable <string.h>
a3828db0 2
0fb0cc75 3 Copyright (C) 1995, 1998, 1999, 2000, 2001, 2004, 2007, 2008, 2009
a3828db0 4 Free Software Foundation, Inc.
c906108c 5
c5aa993b 6 This file is part of GDB.
c906108c 7
c5aa993b
JM
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
a9762ec7 10 the Free Software Foundation; either version 3 of the License, or
c5aa993b 11 (at your option) any later version.
c906108c 12
c5aa993b
JM
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
c906108c 17
c5aa993b 18 You should have received a copy of the GNU General Public License
a9762ec7 19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
c906108c
SS
20
21#if !defined(GDB_STRING_H)
22#define GDB_STRING_H
23
24#ifdef STDC_HEADERS
25#include <string.h>
85bc6edd
UW
26#ifdef HAVE_STRINGS_H
27#include <strings.h> /* strcasecmp etc.. */
28#endif
c906108c 29#else
c5aa993b
JM
30#ifdef HAVE_STRING_H
31#include <string.h>
32#else
33#include <strings.h>
34#endif
c906108c
SS
35
36#ifndef strchr
a14ed312 37extern char *strchr (const char *, int); /* X3.159-1989 4.11.5.2 */
c906108c
SS
38#endif
39
40#ifndef strrchr
a14ed312 41extern char *strrchr (const char *, int); /* X3.159-1989 4.11.5.5 */
c906108c
SS
42#endif
43
c906108c 44#ifndef strtok
a14ed312 45extern char *strtok (char *, const char *); /* X3.159-1989 4.11.5.8 */
c906108c
SS
46#endif
47
c5aa993b
JM
48#ifdef HAVE_MEMORY_H
49#include <memory.h>
50#else
51extern void *memset ();
52extern void *memcpy ();
53extern void *memmove ();
54extern int memcmp ();
55#endif
c906108c
SS
56#endif /* STDC_HEADERS */
57
a3828db0 58#if !HAVE_DECL_STRERROR
c906108c 59#ifndef strerror
a14ed312 60extern char *strerror (int); /* X3.159-1989 4.11.6.2 */
c906108c
SS
61#endif
62#endif
63
a3828db0 64#if !HAVE_DECL_STRSTR
b83266a0 65#ifndef strstr
a3828db0 66extern char *strstr (const char *, const char *); /* X3.159-1989 4.11.5.7 */
b83266a0
SS
67#endif
68#endif
69
c5aa993b 70#endif /* !defined(GDB_STRING_H) */
This page took 0.663693 seconds and 4 git commands to generate.