[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to gnats/libiberty/strerror.c
From: |
Milan Zamazal |
Subject: |
Changes to gnats/libiberty/strerror.c |
Date: |
Mon, 10 Dec 2001 18:04:31 -0500 |
Index: gnats/libiberty/strerror.c
diff -c gnats/libiberty/strerror.c:1.2 gnats/libiberty/strerror.c:1.3
*** gnats/libiberty/strerror.c:1.2 Tue Oct 26 03:10:16 1999
--- gnats/libiberty/strerror.c Mon Dec 10 18:03:26 2001
***************
*** 13,18 ****
--- 13,19 ----
incompatible with our later declaration, perhaps by using const
attributes. So we hide the declaration in errno.h (if any) using a
macro. */
+ #define sys_nerr sys_nerr__
#define sys_errlist sys_errlist__
#endif
***************
*** 20,38 ****
#include <errno.h>
#ifdef HAVE_SYS_ERRLIST
#undef sys_errlist
#endif
/* Routines imported from standard C runtime libraries. */
! #ifdef __STDC__
! #include <stddef.h>
! extern void *malloc (size_t size); /* 4.10.3.3 */
! extern void *memset (void *s, int c, size_t n); /*
4.11.6.1 */
! #else /* !__STDC__ */
! extern char *malloc (); /* Standard memory allocater */
! extern char *memset ();
! #endif /* __STDC__ */
#ifndef MAX
# define MAX(a,b) ((a) > (b) ? (a) : (b))
--- 21,43 ----
#include <errno.h>
#ifdef HAVE_SYS_ERRLIST
+ #undef sys_nerr
#undef sys_errlist
#endif
/* Routines imported from standard C runtime libraries. */
! #ifdef HAVE_STDLIB_H
! #include <stdlib.h>
! #else
! extern PTR malloc ();
! #endif
!
! #ifdef HAVE_STRING_H
! #include <string.h>
! #else
! extern PTR memset ();
! #endif
#ifndef MAX
# define MAX(a,b) ((a) > (b) ? (a) : (b))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Changes to gnats/libiberty/strerror.c,
Milan Zamazal <=