* libc/string/swab.c: Specify that it's defined in <unistd.h>.
* libc/include/string.h: Don't include <sys/types.h>, as it causes really bad namespace pollution. Don't declare swab(), it is properly declared in unistd.h.
This commit is contained in:
@ -13,7 +13,6 @@ extern "C" {
|
||||
|
||||
#include "_ansi.h"
|
||||
#include <sys/reent.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#define __need_size_t
|
||||
#include <stddef.h>
|
||||
@ -72,7 +71,6 @@ const char *_EXFUN(strsignal, (int __signo));
|
||||
#endif
|
||||
int _EXFUN(strtosigno, (const char *__name));
|
||||
#endif
|
||||
void _EXFUN(swab,(const void *, void *, ssize_t));
|
||||
|
||||
/* These function names are used on Windows and perhaps other systems. */
|
||||
#ifndef strcmpi
|
||||
|
@ -3,7 +3,7 @@ FUNCTION
|
||||
<<swab>>---swap adjacent bytes
|
||||
|
||||
ANSI_SYNOPSIS
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
void swab(const void *<[in]>, void *<[out]>, ssize_t <[n]>);
|
||||
|
||||
TRAD_SYNOPSIS
|
||||
|
Reference in New Issue
Block a user