wchar-ldbl.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* -mlong-double-64 compatibility mode for <wchar.h> functions.
  2. Copyright (C) 2006, 2007 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library.
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. The GNU C Library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with the GNU C Library; if not, write to the Free
  14. Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  15. 02111-1307 USA. */
  16. #ifndef _WCHAR_H
  17. # error "Never include <bits/wchar-ldbl.h> directly; use <wchar.h> instead."
  18. #endif
  19. #if defined __USE_ISOC95 || defined __USE_UNIX98
  20. __BEGIN_NAMESPACE_C99
  21. __LDBL_REDIR_DECL (fwprintf);
  22. __LDBL_REDIR_DECL (wprintf);
  23. __LDBL_REDIR_DECL (swprintf);
  24. __LDBL_REDIR_DECL (vfwprintf);
  25. __LDBL_REDIR_DECL (vwprintf);
  26. __LDBL_REDIR_DECL (vswprintf);
  27. # if defined __USE_ISOC99 && !defined __USE_GNU \
  28. && !defined __REDIRECT \
  29. && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K)
  30. __LDBL_REDIR1_DECL (fwscanf, __nldbl___isoc99_fwscanf)
  31. __LDBL_REDIR1_DECL (wscanf, __nldbl___isoc99_wscanf)
  32. __LDBL_REDIR1_DECL (swscanf, __nldbl___isoc99_swscanf)
  33. # else
  34. __LDBL_REDIR_DECL (fwscanf);
  35. __LDBL_REDIR_DECL (wscanf);
  36. __LDBL_REDIR_DECL (swscanf);
  37. # endif
  38. __END_NAMESPACE_C99
  39. #endif
  40. #ifdef __USE_ISOC99
  41. __BEGIN_NAMESPACE_C99
  42. __LDBL_REDIR1_DECL (wcstold, wcstod);
  43. # if !defined __USE_GNU && !defined __REDIRECT \
  44. && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K)
  45. __LDBL_REDIR1_DECL (vfwscanf, __nldbl___isoc99_vfwscanf)
  46. __LDBL_REDIR1_DECL (vwscanf, __nldbl___isoc99_vwscanf)
  47. __LDBL_REDIR1_DECL (vswscanf, __nldbl___isoc99_vswscanf)
  48. # else
  49. __LDBL_REDIR_DECL (vfwscanf);
  50. __LDBL_REDIR_DECL (vwscanf);
  51. __LDBL_REDIR_DECL (vswscanf);
  52. # endif
  53. __END_NAMESPACE_C99
  54. #endif
  55. #ifdef __USE_GNU
  56. __LDBL_REDIR1_DECL (wcstold_l, wcstod_l);
  57. #endif
  58. #if __USE_FORTIFY_LEVEL > 0 && defined __extern_always_inline
  59. __LDBL_REDIR_DECL (__swprintf_chk)
  60. __LDBL_REDIR_DECL (__vswprintf_chk)
  61. # if __USE_FORTIFY_LEVEL > 1
  62. __LDBL_REDIR_DECL (__fwprintf_chk)
  63. __LDBL_REDIR_DECL (__wprintf_chk)
  64. __LDBL_REDIR_DECL (__vfwprintf_chk)
  65. __LDBL_REDIR_DECL (__vwprintf_chk)
  66. # endif
  67. #endif