[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
texinfo/lib system.h,1.4,1.5
From: |
karl |
Subject: |
texinfo/lib system.h,1.4,1.5 |
Date: |
Fri, 26 Mar 2004 02:35:04 +0100 |
Update of /cvsroot/texinfo/texinfo/lib
In directory sheep:/tmp/cvs-serv1260
Modified Files:
system.h
Log Message:
(memchr) [!HAVE_DECL_MEMCHR]: add conditional declaration.
(strcase.h) [!HAVE_DECL_STRNCASE]: add conditional include.
(strings.h) [HAVE_STRINGS_H]: include if
available, even if <string.h> is also available.
This is because strncasecmp is only declared in
<strings.h> on IBM AIX 4.2. (Report from Nelson Beebe.)
Index: system.h
===================================================================
RCS file: /cvsroot/texinfo/texinfo/lib/system.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** system.h 18 Mar 2004 23:16:00 -0000 1.4
--- system.h 26 Mar 2004 01:35:02 -0000 1.5
***************
*** 72,82 ****
/* Don't use bcopy! Use memmove if source and destination may overlap,
memcpy otherwise. */
! #ifdef HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
! #else
# include <strings.h>
char *memchr ();
#endif
--- 72,94 ----
/* Don't use bcopy! Use memmove if source and destination may overlap,
memcpy otherwise. */
! #if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
! #endif
!
! #if HAVE_STRINGS_H
! /* Always include <strings.h> if we have it. This is because that's
! what Autoconf's AC_CHECK_DECL does. On IBM AIX 4.2, strncasecmp is
! only declared in strings.h. */
# include <strings.h>
+ #endif
+
+ #if !HAVE_DECL_STRNCASECMP
+ # include "strcase.h"
+ #endif
+
+ #if !HAVE_DECL_MEMCHR
char *memchr ();
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- texinfo/lib system.h,1.4,1.5,
karl <=