* src/emacs.c, src/lread.c, src/sysdep.c: Remove preconditions
from including locale.h. It was standardized in C89, is universal
now, and some code already assumes it.
(cherry picked from commit
d2b847d2911218380d1640dea81d6e72d4a7dc7c)
#include <errno.h>
#include <fcntl.h>
+#include <locale.h>
#include <stdlib.h>
#include <sys/file.h>
# endif
#endif
-#ifdef HAVE_SETLOCALE
-#include <locale.h>
-#endif
-
#if HAVE_WCHAR_H
# include <wchar.h>
#endif
#include <sys/stat.h>
#include <sys/file.h>
#include <errno.h>
+#include <locale.h>
#include <math.h>
#include <stat-time.h>
#include "lisp.h"
#endif
#include <unistd.h>
-
-#ifdef HAVE_SETLOCALE
-#include <locale.h>
-#endif /* HAVE_SETLOCALE */
-
#include <fcntl.h>
#if !defined HAVE_ANDROID || defined ANDROID_STUBIFY \
# include <wchar.h>
# include <wctype.h>
-# if defined HAVE_NEWLOCALE || defined HAVE_SETLOCALE
-# include <locale.h>
-# endif
+# include <locale.h>
# ifndef LC_COLLATE
# define LC_COLLATE 0
# endif