Changeset 764


Ignore:
Timestamp:
Sep 30, 2003, 8:24:48 PM (22 years ago)
Author:
bird
Message:

sys_errlist and sys_nerr shall not be in stdlib.h but stdio.h or errno.h!

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/binutils/libiberty/strerror.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r763 r764  
    2020#include <stdio.h>
    2121#include <errno.h>
    22 #ifdef __EMX__ /* EM put these two in the wrong header, they should be in stdio.h. */
    23 #include <stdlib.h>
    24 #endif
    2522
    2623#ifdef HAVE_SYS_ERRLIST
  • trunk/src/emx/src/lib/str/strerror.c

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r763 r764  
    22
    33#include "libc-alias.h"
    4 #include <stdlib.h>
     4#include <stdio.h>
    55#include <string.h>
    66#include <emx/thread.h>
  • trunk/src/gcc/libiberty/strerror.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r763 r764  
    2121#include <errno.h>
    2222
    23 #if defined(HAVE_SYS_ERRLIST) && ! defined(__EMX__)
     23#ifdef HAVE_SYS_ERRLIST
    2424#undef sys_nerr
    2525#undef sys_errlist
     
    3838#else
    3939extern PTR memset ();
    40 #endif
    41 
    42 #if defined(HAVE_SYS_ERRLIST) && defined(__EMX__)
    43 #undef sys_nerr
    44 #undef sys_errlist
    4540#endif
    4641
     
    664659      msg = (char *) sys_errlist[errnoval];
    665660    }
    666  
     661
    667662  return (msg);
    668663}
Note: See TracChangeset for help on using the changeset viewer.