diff options
author | Tom Rhodes <trhodes@FreeBSD.org> | 2004-12-10 15:24:40 +0000 |
---|---|---|
committer | Tom Rhodes <trhodes@FreeBSD.org> | 2004-12-10 15:24:40 +0000 |
commit | 2f5cde3c64228de95d392e408f3198df9ba414a1 (patch) | |
tree | ecddfa78aa35a2badcb1a43b4e07713a73436f7a /include/string.h | |
parent | 54bb820a7542f8d27712c65adc66f8a381d6c6dd (diff) | |
download | src-test2-2f5cde3c64228de95d392e408f3198df9ba414a1.tar.gz src-test2-2f5cde3c64228de95d392e408f3198df9ba414a1.zip |
Notes
Diffstat (limited to 'include/string.h')
-rw-r--r-- | include/string.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/include/string.h b/include/string.h index 3844d41738ec..efc8aecec081 100644 --- a/include/string.h +++ b/include/string.h @@ -108,8 +108,19 @@ char *strtok_r(char *, const char *, char **); #endif size_t strxfrm(char * __restrict, const char * __restrict, size_t); #if __BSD_VISIBLE -void swab(const void *, void *, size_t); -#endif + +#ifndef _SWAB_DECLARED +#define _SWAB_DECLARED + +#ifndef _SSIZE_T_DECLARED +typedef __ssize_t ssize_t; +#define _SSIZE_T_DECLARED +#endif /* _SIZE_T_DECLARED */ + +void swab(const void * __restrict, void * __restrict, ssize_t); +#endif /* _SWAB_DECLARED */ + +#endif /* __BSD_VISIBLE */ __END_DECLS #endif /* _STRING_H_ */ |