#374 Guard non standard [v]swprintf declarations

closed-fixed
nobody
None
2008-07-04
2008-07-02
Danny Smith
No

The MSVCRT prototypes for [v]swprintf are non-ANSI.
ISO C90 specifies:

int swprintf (wchar_t *wcs, size_t maxlen, const wchar_t *format, ...);

int vswprintf(wchar_t *wcs, size_t maxlen, const wchar_t *format, va_list args);

This patch protects the MSVCRT declarations with !__STRICT_ANSI__.

OK to commit?

ChangeLog

2008-07-02 Danny Smith <dannysmith@users,sourceforge.net>

* include/stdio.h (swprint, vswprint): Guard with #ifndef __STRICT_ANSI__
* include/wchar.h (swprint, vswprint): Likewise.

Discussion

  • Danny Smith

    Danny Smith - 2008-07-02
     
  • Danny Smith

    Danny Smith - 2008-07-02
    • summary: Guard non standard [v]swprintf decalrations --> Guard non standard [v]swprintf declarations
     
  • Danny Smith

    Danny Smith - 2008-07-02

    Logged In: YES
    user_id=11494
    Originator: YES

    Typos in ChangeLog
    ChangeLog

    2008-07-02 Danny Smith <dannysmith@users,sourceforge.net>

    * include/stdio.h (swprintf, vswprintf): Guard with #ifndef
    __STRICT_ANSI__
    * include/wchar.h (swprintf, vswprintf): Likewise.

     
  • Chris Sutcliffe

    Chris Sutcliffe - 2008-07-02

    Logged In: YES
    user_id=570619
    Originator: NO

    Looks fine to me, please commit.

     
  • Danny Smith

    Danny Smith - 2008-07-04
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks