stdio-ldbl.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /* -mlong-double-64 compatibility mode for stdio functions.
  2. Copyright (C) 2006-2016 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, see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifndef _STDIO_H
  16. # error "Never include <bits/stdio-ldbl.h> directly; use <stdio.h> instead."
  17. #endif
  18. __BEGIN_NAMESPACE_STD
  19. __LDBL_REDIR_DECL (fprintf)
  20. __LDBL_REDIR_DECL (printf)
  21. __LDBL_REDIR_DECL (sprintf)
  22. __LDBL_REDIR_DECL (vfprintf)
  23. __LDBL_REDIR_DECL (vprintf)
  24. __LDBL_REDIR_DECL (vsprintf)
  25. #if defined __USE_ISOC99 && !defined __USE_GNU \
  26. && !defined __REDIRECT \
  27. && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K)
  28. __LDBL_REDIR1_DECL (fscanf, __nldbl___isoc99_fscanf)
  29. __LDBL_REDIR1_DECL (scanf, __nldbl___isoc99_scanf)
  30. __LDBL_REDIR1_DECL (sscanf, __nldbl___isoc99_sscanf)
  31. #else
  32. __LDBL_REDIR_DECL (fscanf)
  33. __LDBL_REDIR_DECL (scanf)
  34. __LDBL_REDIR_DECL (sscanf)
  35. #endif
  36. __END_NAMESPACE_STD
  37. #if defined __USE_ISOC99 || defined __USE_UNIX98
  38. __BEGIN_NAMESPACE_C99
  39. __LDBL_REDIR_DECL (snprintf)
  40. __LDBL_REDIR_DECL (vsnprintf)
  41. __END_NAMESPACE_C99
  42. #endif
  43. #ifdef __USE_ISOC99
  44. __BEGIN_NAMESPACE_C99
  45. # if !defined __USE_GNU && !defined __REDIRECT \
  46. && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K)
  47. __LDBL_REDIR1_DECL (vfscanf, __nldbl___isoc99_vfscanf)
  48. __LDBL_REDIR1_DECL (vscanf, __nldbl___isoc99_vscanf)
  49. __LDBL_REDIR1_DECL (vsscanf, __nldbl___isoc99_vsscanf)
  50. # else
  51. __LDBL_REDIR_DECL (vfscanf)
  52. __LDBL_REDIR_DECL (vsscanf)
  53. __LDBL_REDIR_DECL (vscanf)
  54. # endif
  55. __END_NAMESPACE_C99
  56. #endif
  57. #ifdef __USE_XOPEN2K8
  58. __LDBL_REDIR_DECL (vdprintf)
  59. __LDBL_REDIR_DECL (dprintf)
  60. #endif
  61. #ifdef __USE_GNU
  62. __LDBL_REDIR_DECL (vasprintf)
  63. __LDBL_REDIR_DECL (__asprintf)
  64. __LDBL_REDIR_DECL (asprintf)
  65. __LDBL_REDIR_DECL (obstack_printf)
  66. __LDBL_REDIR_DECL (obstack_vprintf)
  67. #endif
  68. #if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
  69. __LDBL_REDIR_DECL (__sprintf_chk)
  70. __LDBL_REDIR_DECL (__vsprintf_chk)
  71. # if defined __USE_ISOC99 || defined __USE_UNIX98
  72. __LDBL_REDIR_DECL (__snprintf_chk)
  73. __LDBL_REDIR_DECL (__vsnprintf_chk)
  74. # endif
  75. # if __USE_FORTIFY_LEVEL > 1
  76. __LDBL_REDIR_DECL (__fprintf_chk)
  77. __LDBL_REDIR_DECL (__printf_chk)
  78. __LDBL_REDIR_DECL (__vfprintf_chk)
  79. __LDBL_REDIR_DECL (__vprintf_chk)
  80. # ifdef __USE_XOPEN2K8
  81. __LDBL_REDIR_DECL (__dprintf_chk)
  82. __LDBL_REDIR_DECL (__vdprintf_chk)
  83. # endif
  84. # ifdef __USE_GNU
  85. __LDBL_REDIR_DECL (__asprintf_chk)
  86. __LDBL_REDIR_DECL (__vasprintf_chk)
  87. __LDBL_REDIR_DECL (__obstack_printf_chk)
  88. __LDBL_REDIR_DECL (__obstack_vprintf_chk)
  89. # endif
  90. # endif
  91. #endif