Guest User

Untitled

a guest
Jan 20th, 2019
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.45 KB | None | 0 0
  1. Index: _mingw_print_pop.h
  2. ===================================================================
  3. --- _mingw_print_pop.h (révision 4514)
  4. +++ _mingw_print_pop.h (copie de travail)
  5. @@ -7,21 +7,21 @@
  6. /* Define __mingw_<printf> macros. */
  7. #if defined(__USE_MINGW_ANSI_STDIO) && (defined(_INC_STDIO) || defined(_WSTDIO_DEFINED)) && ((__USE_MINGW_ANSI_STDIO + 0) != 0)
  8. #ifdef _INC_STDIO
  9. -#define fprintf __mingw_fprintf
  10. -#define printf __mingw_printf
  11. -#define sprintf __mingw_sprintf
  12. -#define snprintf __mingw_snprintf
  13. -#define vfprintf __mingw_vfprintf
  14. -#define vprintf __mingw_vprintf
  15. -#define vsprintf __mingw_vsprintf
  16. -#define vsnprintf __mingw_vsnprintf
  17. +#define fprintf(f, fmt , args...) __mingw_fprintf(f, fmt, ##args)
  18. +#define printf(fmt , args...) __mingw_printf(fmt, ##args)
  19. +#define sprintf(c, fmt , args...) __mingw_sprintf(c, fmt, ##args)
  20. +#define snprintf(c, s, fmt, args...) __mingw_snprintf(c, s, fmt, ##args)
  21. +#define vfprintf(f, fmt, ap) __mingw_vfprintf(f, fmt, ap)
  22. +#define vprintf(fmt, ap) __mingw_vprintf(fmt, ap)
  23. +#define vsprintf(c, fmt, ap) __mingw_vsprintf(c, fmt, ap)
  24. +#define vsnprintf(c, s, fmt, ap) __mingw_vsnprintf(c, s, fmt, ap)
  25.  
  26. -#define sscanf __mingw_sscanf
  27. -#define vsscanf __mingw_vsscanf
  28. -#define scanf __mingw_scanf
  29. -#define vscanf __mingw_vscanf
  30. -#define fscanf __mingw_fscanf
  31. -#define vfscanf __mingw_vfscanf
  32. +#define sscanf(s, fmt , args...) __mingw_sscanf(s, fmt, ##args)
  33. +#define vsscanf(s, fmt, ap) __mingw_vsscanf(s, fmt, ap)
  34. +#define scanf(fmt , args...) __mingw_scanf(fmt, ##args)
  35. +#define vscanf(fmt, ap) __mingw_vscanf(fmt, ap)
  36. +#define fscanf(f, fmt , args...) __mingw_fscanf(f, fmt, ##args)
  37. +#define vfscanf(f, fmt, ap) __mingw_vfscanf(f, fmt, ap)
  38.  
  39. #define asprintf __mingw_asprintf
  40. #define vasprintf __mingw_vasprintf
  41. @@ -38,14 +38,14 @@
  42. #undef snwprintf
  43. #undef vsnwprintf
  44.  
  45. -#define fwprintf __mingw_fwprintf
  46. -#define wprintf __mingw_wprintf
  47. -#define vfwprintf __mingw_vfwprintf
  48. -#define vwprintf __mingw_vwprintf
  49. -#define swprintf __mingw_swprintf
  50. -#define vswprintf __mingw_vswprintf
  51. -#define snwprintf __mingw_snwprintf
  52. -#define vsnwprintf __mingw_vsnwprintf
  53. +#define fwprintf(f, fmt , args...) __mingw_fwprintf(f, fmt, ##args)
  54. +#define wprintf(fmt , args...) __mingw_wprintf(fmt, ##args)
  55. +#define swprintf(c, fmt , args...) __mingw_swprintf(c, fmt, ##args)
  56. +#define snwprintf(c, s, fmt, args...) __mingw_snwprintf(c, s, fmt, ##args)
  57. +#define vfwprintf(f, fmt, ap) __mingw_vfwprintf(f, fmt, ap)
  58. +#define vwprintf(fmt, ap) __mingw_vwprintf(fmt, ap)
  59. +#define vswprintf(c, fmt, ap) __mingw_vswprintf(c, fmt, ap)
  60. +#define vsnwprintf(c, s, fmt, ap) __mingw_vsnwprintf(c, s, fmt, ap)
  61.  
  62. #undef swscanf
  63. #undef vswscanf
  64. @@ -54,12 +54,12 @@
  65. #undef fwscanf
  66. #undef vfwscanf
  67.  
  68. -#define swscanf __mingw_swscanf
  69. -#define vswscanf __mingw_vswscanf
  70. -#define wscanf __mingw_wscanf
  71. -#define vwscanf __mingw_vwscanf
  72. -#define fwscanf __mingw_fwscanf
  73. -#define vfwscanf __mingw_vfwscanf
  74. +#define swscanf(s, fmt , args...) __mingw_swscanf(s, fmt, ##args)
  75. +#define vswscanf(s, fmt, ap) __mingw_vswscanf(s, fmt, ap)
  76. +#define wscanf(fmt , args...) __mingw_wscanf(fmt, ##args)
  77. +#define vwscanf(fmt, ap) __mingw_vwscanf(fmt, ap)
  78. +#define fwscanf(f, fmt , args...) __mingw_fwscanf(f, fmt, ##args)
  79. +#define vfwscanf(f, fmt, ap) __mingw_vfwscanf(f, fmt, ap)
  80.  
  81. #endif
Add Comment
Please, Sign In to add comment