bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

localcharset module simplification


From: Bruno Haible
Subject: localcharset module simplification
Date: Mon, 31 Jul 2006 18:05:46 +0200
User-agent: KMail/1.9.1

2006-07-31  Bruno Haible  <address@hidden>

        * localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
        * localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
        <stdlib.h>, <string.h>.

*** lib/localcharset.c  22 Jul 2006 14:11:57 -0000      1.22
--- lib/localcharset.c  31 Jul 2006 16:06:52 -0000
***************
*** 25,43 ****
  /* Specification.  */
  #include "localcharset.h"
  
! #if HAVE_STDDEF_H
! # include <stddef.h>
! #endif
! 
  #include <stdio.h>
! #if HAVE_STRING_H
! # include <string.h>
! #else
! # include <strings.h>
! #endif
! #if HAVE_STDLIB_H
! # include <stdlib.h>
! #endif
  
  #if defined _WIN32 || defined __WIN32__
  # define WIN32_NATIVE
--- 25,34 ----
  /* Specification.  */
  #include "localcharset.h"
  
! #include <stddef.h>
  #include <stdio.h>
! #include <string.h>
! #include <stdlib.h>
  
  #if defined _WIN32 || defined __WIN32__
  # define WIN32_NATIVE
*** m4/localcharset.m4  10 Jan 2006 13:57:21 -0000      1.4
--- m4/localcharset.m4  31 Jul 2006 16:06:52 -0000
***************
*** 1,4 ****
! # localcharset.m4 serial 3
  dnl Copyright (C) 2002, 2004, 2006 Free Software Foundation, Inc.
  dnl This file is free software; the Free Software Foundation
  dnl gives unlimited permission to copy and/or distribute it,
--- 1,4 ----
! # localcharset.m4 serial 4
  dnl Copyright (C) 2002, 2004, 2006 Free Software Foundation, Inc.
  dnl This file is free software; the Free Software Foundation
  dnl gives unlimited permission to copy and/or distribute it,
***************
*** 7,13 ****
  AC_DEFUN([gl_LOCALCHARSET],
  [
    dnl Prerequisites of lib/localcharset.c.
-   AC_CHECK_HEADERS_ONCE(stddef.h stdlib.h string.h)
    AC_REQUIRE([AM_LANGINFO_CODESET])
    AC_CHECK_DECLS_ONCE(getc_unlocked)
    AC_CHECK_FUNCS_ONCE(setlocale)
--- 7,12 ----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]