Mention stringprep API changes.
[libidn.git] / internal.h
blobb3f5ab37eaf3987f14c6cf789fef0a0f375b4190
1 /* internal.h Internal header file for libidn.
2 * Copyright (C) 2002, 2003 Simon Josefsson
4 * This file is part of GNU Libidn.
6 * GNU Libidn is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * GNU Libidn is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with GNU Libidn; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #ifndef _INTERNAL_H
23 #define _INTERNAL_H
25 #ifdef _LIBC
27 #include <stdio.h>
28 #include <stdlib.h>
29 #include <string.h>
30 #include <errno.h>
32 #define HAVE_ICONV 1
33 #define LOCALE_WORKS 1
35 #else /* _LIBC */
37 #if HAVE_CONFIG_H
38 #include "config.h"
39 #endif
41 #ifdef STDC_HEADERS
42 #include <stdio.h>
43 #include <stdlib.h>
44 #include <stdarg.h>
45 #include <ctype.h>
46 #endif
48 #if HAVE_UNISTD_H
49 #include <unistd.h>
50 #endif
52 #ifdef HAVE_SYS_TYPES_H
53 #include <sys/types.h>
54 #endif
56 #ifdef HAVE_ERRNO_H
57 #include <errno.h>
58 #endif
60 #if HAVE_INTTYPES_H
61 # include <inttypes.h>
62 #else
63 # if HAVE_STDINT_H
64 # include <stdint.h>
65 # endif
66 #endif
68 #if HAVE_STRING_H
69 # if !STDC_HEADERS && HAVE_MEMORY_H
70 # include <memory.h>
71 # endif
72 # include <string.h>
73 #endif
74 #if HAVE_STRINGS_H
75 # include <strings.h>
76 #endif
78 #if defined(WITH_DMALLOC) && WITH_DMALLOC
79 #include <dmalloc.h>
80 #endif
82 #endif /* _LIBC */
84 #include "stringprep.h"
85 #include "punycode.h"
86 #include "idna.h"
88 #endif /* _INTERNAL_H */