瀏覽代碼

strutl.cc: Add declarations for the compat _ascii() functions

This shuts up gcc

Gbp-Dch: ignore
Julian Andres Klode 10 年之前
父節點
當前提交
390344f9e7
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      apt-pkg/contrib/strutl.cc

+ 2 - 0
apt-pkg/contrib/strutl.cc

@@ -1377,6 +1377,7 @@ string StripEpoch(const string &VerStr)
    standard tolower/toupper and as a bonus avoids problems with different
    standard tolower/toupper and as a bonus avoids problems with different
    locales - we only operate on ascii chars anyway. */
    locales - we only operate on ascii chars anyway. */
 #undef tolower_ascii
 #undef tolower_ascii
+int tolower_ascii(int const c) APT_CONST APT_COLD;
 int tolower_ascii(int const c)
 int tolower_ascii(int const c)
 {
 {
    return tolower_ascii_inline(c);
    return tolower_ascii_inline(c);
@@ -1390,6 +1391,7 @@ int tolower_ascii(int const c)
    standard isspace() and as a bonus avoids problems with different
    standard isspace() and as a bonus avoids problems with different
    locales - we only operate on ascii chars anyway. */
    locales - we only operate on ascii chars anyway. */
 #undef isspace_ascii
 #undef isspace_ascii
+int isspace_ascii(int const c) APT_CONST APT_COLD;
 int isspace_ascii(int const c)
 int isspace_ascii(int const c)
 {
 {
    return isspace_ascii_inline(c);
    return isspace_ascii_inline(c);