Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1 | #ifndef _ICONV_H |
| 2 | #define _ICONV_H |
| 3 | |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
Rich Felker | 400c5e5 | 2012-09-06 22:44:55 -0400 | [diff] [blame^] | 8 | #if __STDC_VERSION__ >= 199901L |
| 9 | #define __restrict restrict |
| 10 | #elif !defined(__GNUC__) |
| 11 | #define __restrict |
| 12 | #endif |
| 13 | |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 14 | #define __NEED_size_t |
| 15 | |
| 16 | #include <bits/alltypes.h> |
| 17 | |
| 18 | typedef void *iconv_t; |
| 19 | |
| 20 | iconv_t iconv_open(const char *, const char *); |
Rich Felker | 400c5e5 | 2012-09-06 22:44:55 -0400 | [diff] [blame^] | 21 | size_t iconv(iconv_t, char **__restrict, size_t *__restrict, char **__restrict, size_t *__restrict); |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 22 | int iconv_close(iconv_t); |
| 23 | |
| 24 | #ifdef __cplusplus |
| 25 | } |
| 26 | #endif |
| 27 | |
| 28 | #endif |