~ubuntu-branches/ubuntu/precise/libtasn1-3/precise

« back to all changes in this revision

Viewing changes to lib/gllib/wchar.in.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2009-05-21 09:06:49 UTC
  • mfrom: (1.1.9 upstream) (6 squeeze)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20090521090649-9240a15omv94d1bj
Tags: 2.2-1
* Sync debian/control with override file, libtasn1-3-dbg is section debug.
* New upstream version.
* Standards-Version 3.8.1, no changes required.
* Add Homepage field to debian/control.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
@PRAGMA_SYSTEM_HEADER@
31
31
#endif
32
32
 
33
 
#if defined __need_mbstate_t || (defined __hpux && ((defined _INTTYPES_INCLUDED && !defined strtoimax) || defined _GL_JUST_INCLUDE_SYSTEM_WCHAR_H))
 
33
#if defined __need_mbstate_t || (defined __hpux && ((defined _INTTYPES_INCLUDED && !defined strtoimax) || defined _GL_JUST_INCLUDE_SYSTEM_WCHAR_H)) || defined _GL_ALREADY_INCLUDING_WCHAR_H
34
34
/* Special invocation convention:
35
35
   - Inside uClibc header files.
36
36
   - On HP-UX 11.00 we have a sequence of nested includes
38
38
     once indirectly <stdint.h> -> <sys/types.h> -> <inttypes.h> -> <wchar.h>
39
39
     and once directly.  In both situations 'wint_t' is not yet defined,
40
40
     therefore we cannot provide the function overrides; instead include only
41
 
     the system's <wchar.h>.  */
 
41
     the system's <wchar.h>.
 
42
   - On IRIX 6.5, similarly, we have an include <wchar.h> -> <wctype.h>, and
 
43
     the latter includes <wchar.h>.  But here, we have no way to detect whether
 
44
     <wctype.h> is completely included or is still being included.  */
42
45
 
43
46
#@INCLUDE_NEXT@ @NEXT_WCHAR_H@
44
47
 
47
50
 
48
51
#ifndef _GL_WCHAR_H
49
52
 
 
53
#define _GL_ALREADY_INCLUDING_WCHAR_H
 
54
 
50
55
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
51
56
   <wchar.h>.
52
57
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
62
67
# @INCLUDE_NEXT@ @NEXT_WCHAR_H@
63
68
#endif
64
69
 
 
70
#undef _GL_ALREADY_INCLUDING_WCHAR_H
 
71
 
65
72
#ifndef _GL_WCHAR_H
66
73
#define _GL_WCHAR_H
67
74
 
257
264
 
258
265
/* Convert a wide string to a string.  */
259
266
#if @GNULIB_WCSNRTOMBS@
260
 
# if !@HAVE_WCSNRTOMBS@
 
267
# if @REPLACE_WCSNRTOMBS@
 
268
#  undef wcsnrtombs
 
269
#  define wcsnrtombs rpl_wcsnrtombs
 
270
# endif
 
271
# if !@HAVE_WCSNRTOMBS@ || @REPLACE_WCSNRTOMBS@
261
272
extern size_t wcsnrtombs (char *dest, const wchar_t **srcp, size_t srclen, size_t len, mbstate_t *ps);
262
273
# endif
263
274
#elif defined GNULIB_POSIXCHECK