diff options
author | Alan Modra <amodra@gmail.com> | 2021-04-05 15:31:53 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-04-05 15:31:53 +0930 |
commit | c774eab1c82f49f0f719fd7e51e5988c62082118 (patch) | |
tree | e8f1d3c42cdf376a768fe11cca195261ddeb04ac /ld/ld.h | |
parent | 23d613801dfb97757f0e8eaf260d154f3e6750b1 (diff) | |
download | binutils-c774eab1c82f49f0f719fd7e51e5988c62082118.zip binutils-c774eab1c82f49f0f719fd7e51e5988c62082118.tar.gz binutils-c774eab1c82f49f0f719fd7e51e5988c62082118.tar.bz2 |
C99 ld configury
* configure.ac: Move initfini-array arg handling earlier. Don't
check for string.h, strings.h, stdlib.h, or locale.h. Do check
for inttypes.h, stdint.h, sys/types.h. Don't check for
setlocale, free, getev or strstr.
(AC_ISC_POSIX): Don't invoke.
* sysdep.h: Include string.h and stdlib.h unconditionally. Test
HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
getenv fallback declarations.
* ld.h: Don't test HAVE_LOCALE_H.
* ldmain.c: Don't test HAVE_SETLOCALE.
* config.in: Regenerate.
* configure: Regenerate.
Diffstat (limited to 'ld/ld.h')
-rw-r--r-- | ld/ld.h | 22 |
1 files changed, 9 insertions, 13 deletions
@@ -21,8 +21,6 @@ #ifndef LD_H #define LD_H -#ifdef HAVE_LOCALE_H -#endif #ifndef SEEK_CUR #define SEEK_CUR 1 #endif @@ -30,18 +28,16 @@ #define SEEK_END 2 #endif -#ifdef HAVE_LOCALE_H -# ifndef ENABLE_NLS - /* The Solaris version of locale.h always includes libintl.h. If we have - been configured with --disable-nls then ENABLE_NLS will not be defined - and the dummy definitions of bindtextdomain (et al) below will conflict - with the defintions in libintl.h. So we define these values to prevent - the bogus inclusion of libintl.h. */ -# define _LIBINTL_H -# define _LIBGETTEXT_H -# endif -# include <locale.h> +#ifndef ENABLE_NLS + /* The Solaris version of locale.h always includes libintl.h. If we have + been configured with --disable-nls then ENABLE_NLS will not be defined + and the dummy definitions of bindtextdomain (et al) below will conflict + with the defintions in libintl.h. So we define these values to prevent + the bogus inclusion of libintl.h. */ +# define _LIBINTL_H +# define _LIBGETTEXT_H #endif +#include <locale.h> #ifdef ENABLE_NLS # include <libintl.h> |