Fix for printf positional parameter check from Francesco.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell
2006-12-14 00:07:15 +00:00
parent 0ec8d8f72c
commit 9fea3325be

View File

@@ -4557,7 +4557,7 @@ if test "$ac_cv_func_snprintf" = "yes"; then
int main (void)
{
char buffer[128];
snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
if (strcmp ("2 3 1", buffer) == 0)
exit (0);
exit (1);