/[gnats]/gnats/libiberty/strerror.c
ViewVC logotype

Diff of /gnats/libiberty/strerror.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by jsm, Tue Oct 26 07:10:16 1999 UTC revision 1.3 by pdm, Mon Dec 10 23:03:26 2001 UTC
# Line 13  Line 13 
13     incompatible with our later declaration, perhaps by using const     incompatible with our later declaration, perhaps by using const
14     attributes.  So we hide the declaration in errno.h (if any) using a     attributes.  So we hide the declaration in errno.h (if any) using a
15     macro. */     macro. */
16    #define sys_nerr sys_nerr__
17  #define sys_errlist sys_errlist__  #define sys_errlist sys_errlist__
18  #endif  #endif
19    
# Line 20  Line 21 
21  #include <errno.h>  #include <errno.h>
22    
23  #ifdef HAVE_SYS_ERRLIST  #ifdef HAVE_SYS_ERRLIST
24    #undef sys_nerr
25  #undef sys_errlist  #undef sys_errlist
26  #endif  #endif
27    
28  /*  Routines imported from standard C runtime libraries. */  /*  Routines imported from standard C runtime libraries. */
29    
30  #ifdef __STDC__  #ifdef HAVE_STDLIB_H
31  #include <stddef.h>  #include <stdlib.h>
32  extern void *malloc (size_t size);                              /* 4.10.3.3 */  #else
33  extern void *memset (void *s, int c, size_t n);                 /* 4.11.6.1 */  extern PTR malloc ();
34  #else   /* !__STDC__ */  #endif
35  extern char *malloc ();         /* Standard memory allocater */  
36  extern char *memset ();  #ifdef HAVE_STRING_H
37  #endif  /* __STDC__ */  #include <string.h>
38    #else
39    extern PTR memset ();
40    #endif
41    
42  #ifndef MAX  #ifndef MAX
43  #  define MAX(a,b) ((a) > (b) ? (a) : (b))  #  define MAX(a,b) ((a) > (b) ? (a) : (b))

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26