Преглед на файлове

Don't tag up gettext's *wprintf() functions

gcc doesn't support -Wformat for the wide format versions of printf()
and friends yet:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38308

Do what glibc does and have some commented out tags to show future
intent.
pull/1645/head
Pierre Ossman преди 10 месеца
родител
ревизия
9abf88e8d6
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3
    3
      vncviewer/i18n.h

+ 3
- 3
vncviewer/i18n.h Целия файл

@@ -45,11 +45,11 @@ extern int asprintf (char **, const char *, ...)
#endif
#if defined(__GNUC__) && defined(wprintf)
extern int fwprintf (FILE *, const wchar_t *, ...)
__attribute__((__format__ (__printf__, 2, 3)));
/* __attribute__((__format__ (__wprintf__, 2, 3))) */;
extern int wprintf (const wchar_t *, ...)
__attribute__((__format__ (__printf__, 1, 2)));
/* __attribute__((__format__ (__wprintf__, 1, 2))) */;
extern int swprintf (wchar_t *, size_t, const wchar_t *, ...)
__attribute__((__format__ (__printf__, 3, 4)));
/* __attribute__((__format__ (__wprintf__, 3, 4))) */;
#endif

#define _(String) gettext (String)

Loading…
Отказ
Запис