bug-gnulib
[Top][All Lists]
Advanced

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

[Bug-gnulib] strcspn patch to assume C89 or better


From: Bruno Haible
Subject: [Bug-gnulib] strcspn patch to assume C89 or better
Date: Wed, 10 Sep 2003 16:07:34 +0200
User-agent: KMail/1.5

I installed this patch.

        * lib/strcspn.c: Include <string.h> unconditionally.
        * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.

*** lib/strcspn.c       15 Nov 2002 17:36:03 -0000      1.12
--- lib/strcspn.c       10 Sep 2003 13:47:01 -0000
***************
*** 1,4 ****
! /* Copyright (C) 1991, 1994, 1996-1997, 2002 Free Software Foundation, Inc.
  
     NOTE: The canonical source of this file is maintained with the GNU C 
Library.
     Bugs can be reported to address@hidden
--- 1,4 ----
! /* Copyright (C) 1991, 1994, 1996-1997, 2002-2003 Free Software Foundation, 
Inc.
  
     NOTE: The canonical source of this file is maintained with the GNU C 
Library.
     Bugs can be reported to address@hidden
***************
*** 23,37 ****
  #endif
  
  #include <stddef.h>
! 
! #if defined _LIBC || HAVE_STRING_H
! # include <string.h>
! #else
! # include <strings.h>
! # ifndef strchr
! #  define strchr index
! # endif
! #endif
  
  #undef strcspn
  
--- 23,29 ----
  #endif
  
  #include <stddef.h>
! #include <string.h>
  
  #undef strcspn
  
*** m4/strcspn.m4       31 Dec 2002 13:42:07 -0000      1.1
--- m4/strcspn.m4       10 Sep 2003 13:47:02 -0000
***************
*** 1,5 ****
! # strcspn.m4 serial 1
! dnl Copyright (C) 2002 Free Software Foundation, Inc.
  dnl This file is free software, distributed under the terms of the GNU
  dnl General Public License.  As a special exception to the GNU General
  dnl Public License, this file may be distributed as part of a program
--- 1,5 ----
! # strcspn.m4 serial 2
! dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
  dnl This file is free software, distributed under the terms of the GNU
  dnl General Public License.  As a special exception to the GNU General
  dnl Public License, this file may be distributed as part of a program
***************
*** 15,20 ****
  ])
  
  # Prerequisites of lib/strcspn.c.
! AC_DEFUN([gl_PREREQ_STRCSPN], [
!   AC_CHECK_HEADERS_ONCE(string.h)
! ])
--- 15,18 ----
  ])
  
  # Prerequisites of lib/strcspn.c.
! AC_DEFUN([gl_PREREQ_STRCSPN], [:])





reply via email to

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