Ignore:
Timestamp:
Dec 23, 2011, 7:16:58 PM (14 years ago)
Author:
dmik
Message:

Fix build breaks with the newest GCC 4.4.6 from GIT.

In particular, GCC is now strict about matching the calling convention
of the prototype (argument) and the real function used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/unicode/string.c

    r21916 r21927  
    1212#include "wine/unicode.h"
    1313
    14 int strcmpiW( const WCHAR *str1, const WCHAR *str2 )
     14_K32CONV int strcmpiW( const WCHAR *str1, const WCHAR *str2 )
    1515{
    1616    for (;;)
     
    2323}
    2424
    25 int strncmpiW( const WCHAR *str1, const WCHAR *str2, int n )
     25_K32CONV int strncmpiW( const WCHAR *str1, const WCHAR *str2, int n )
    2626{
    2727    int ret = 0;
     
    3131}
    3232
    33 WCHAR *strstrW( const WCHAR *str, const WCHAR *sub )
     33_K32CONV WCHAR *strstrW( const WCHAR *str, const WCHAR *sub )
    3434{
    3535    while (*str)
     
    4646/* Copyright (C) 1991,92,94,95,96,97,98,99,2000,2001 Free Software Foundation, Inc. */
    4747
    48 long int strtolW( const WCHAR *nptr, WCHAR **endptr, int base )
     48_K32CONV long int strtolW( const WCHAR *nptr, WCHAR **endptr, int base )
    4949{
    5050  int negative;
     
    165165}
    166166
    167 unsigned long int strtoulW( const WCHAR *nptr, WCHAR **endptr, int base )
     167_K32CONV unsigned long int strtoulW( const WCHAR *nptr, WCHAR **endptr, int base )
    168168{
    169169  int negative;
     
    276276}
    277277
    278 int vsnprintfW(WCHAR *str, unsigned int len, const WCHAR *format, va_list valist)
     278_K32CONV int vsnprintfW(WCHAR *str, unsigned int len, const WCHAR *format, va_list valist)
    279279{
    280280    unsigned int written = 0;
     
    395395
    396396
    397 int snprintfW(WCHAR *str, unsigned int len, const WCHAR *format, ...)
     397_K32CONV int snprintfW(WCHAR *str, unsigned int len, const WCHAR *format, ...)
    398398{
    399399    int retval;
     
    405405}
    406406
    407 int sprintfW( WCHAR *str, const WCHAR *format, ...)
     407_K32CONV int sprintfW( WCHAR *str, const WCHAR *format, ...)
    408408{
    409409    int retval;
Note: See TracChangeset for help on using the changeset viewer.