| OLD | NEW |
| 1 /* Random host-dependent support code. | 1 /* Random host-dependent support code. |
| 2 Copyright 1995, 1997, 2000, 2005, 2007 Free Software Foundation, Inc. | 2 Copyright 1995, 1997, 2000, 2005, 2007, 2012 Free Software Foundation, Inc. |
| 3 Written by Ken Raeburn. | 3 Written by Ken Raeburn. |
| 4 | 4 |
| 5 This file is part of the GNU opcodes library. | 5 This file is part of the GNU opcodes library. |
| 6 | 6 |
| 7 This library is free software; you can redistribute it and/or modify | 7 This library is free software; you can redistribute it and/or modify |
| 8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
| 9 the Free Software Foundation; either version 3, or (at your option) | 9 the Free Software Foundation; either version 3, or (at your option) |
| 10 any later version. | 10 any later version. |
| 11 | 11 |
| 12 It is distributed in the hope that it will be useful, but WITHOUT | 12 It is distributed in the hope that it will be useful, but WITHOUT |
| 13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | 13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | 14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public |
| 15 License for more details. | 15 License for more details. |
| 16 | 16 |
| 17 You should have received a copy of the GNU General Public License | 17 You should have received a copy of the GNU General Public License |
| 18 along with this program; if not, write to the Free Software | 18 along with this program; if not, write to the Free Software |
| 19 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, | 19 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, |
| 20 MA 02110-1301, USA. */ | 20 MA 02110-1301, USA. */ |
| 21 | 21 |
| 22 | 22 |
| 23 /* Do system-dependent stuff, mainly driven by autoconf-detected info. | 23 /* Do system-dependent stuff, mainly driven by autoconf-detected info. |
| 24 | 24 |
| 25 Well, some generic common stuff is done here too, like including | 25 Well, some generic common stuff is done here too, like including |
| 26 ansidecl.h. That's because the .h files in bfd/hosts files I'm | 26 ansidecl.h. That's because the .h files in bfd/hosts files I'm |
| 27 trying to replace often did that. If it can be dropped from this | 27 trying to replace often did that. If it can be dropped from this |
| 28 file (check in a non-ANSI environment!), it should be. */ | 28 file (check in a non-ANSI environment!), it should be. */ |
| 29 | 29 |
| 30 #ifdef PACKAGE |
| 31 #error sysdep.h must be included in lieu of config.h |
| 32 #endif |
| 33 |
| 30 #include "config.h" | 34 #include "config.h" |
| 31 | 35 |
| 32 #include "ansidecl.h" | 36 #include "ansidecl.h" |
| 33 | 37 |
| 34 #ifdef HAVE_STDLIB_H | 38 #ifdef HAVE_STDLIB_H |
| 35 #include <stdlib.h> | 39 #include <stdlib.h> |
| 36 #endif | 40 #endif |
| 37 | 41 |
| 42 #ifdef STRING_WITH_STRINGS |
| 43 #include <string.h> |
| 44 #include <strings.h> |
| 45 #else |
| 38 #ifdef HAVE_STRING_H | 46 #ifdef HAVE_STRING_H |
| 39 #include <string.h> | 47 #include <string.h> |
| 40 #else | 48 #else |
| 41 #ifdef HAVE_STRINGS_H | 49 #ifdef HAVE_STRINGS_H |
| 42 #include <strings.h> | 50 #include <strings.h> |
| 43 #endif | 51 #endif |
| 44 #endif | 52 #endif |
| 53 #endif |
| 45 | 54 |
| 46 #if !HAVE_DECL_STPCPY | 55 #if !HAVE_DECL_STPCPY |
| 47 extern char *stpcpy (char *__dest, const char *__src); | 56 extern char *stpcpy (char *__dest, const char *__src); |
| 48 #endif | 57 #endif |
| OLD | NEW |