From: Milan M. <mil...@gm...> - 2009-05-03 09:52:37
|
The changes bellow broke MSVC build. snprintf() is C99. 2009/4/6 <el...@us...>: > Revision: 12042 > http://alleg.svn.sourceforge.net/alleg/?rev=12042&view=rev > Author: elias > Date: 2009-04-06 17:27:09 +0000 (Mon, 06 Apr 2009) > > Log Message: > ----------- > Removed all remaining uses of uconvert and the functions themselves (also the u*printf functions which used it). Only a few steps left and the old u* API will be phased out completely. > > Modified: allegro/branches/4.9/demo/src/Misc.cpp > =================================================================== > --- allegro/branches/4.9/demo/src/Misc.cpp 2009-04-06 16:24:53 UTC (rev 12041) > +++ allegro/branches/4.9/demo/src/Misc.cpp 2009-04-06 17:27:09 UTC (rev 12042) > @@ -25,7 +25,7 @@ > > va_start(ap, fmt); > memset(res, 0, 512); > - uvszprintf(res, 511, fmt, ap); > + snprintf(res, 511, fmt, ap); > > al_find_resource("a5teroids", res, AL_FM_WRITE, name, MAX_PATH); > > @@ -42,7 +42,7 @@ > > va_start(ap, fmt); > memset(res, 0, 512); > - uvszprintf(res, 511, fmt, ap); > + snprintf(res, 511, fmt, ap); > > al_find_resource("a5teroids", res, 0, name, MAX_PATH); > //printf("getResource: '%s'\n", name); > > Modified: allegro/branches/4.9/examples/ex_logo.c > =================================================================== > --- allegro/branches/4.9/examples/ex_logo.c 2009-04-06 16:24:53 UTC (rev 12041) > +++ allegro/branches/4.9/examples/ex_logo.c 2009-04-06 17:27:09 UTC (rev 12042) > @@ -245,7 +245,7 @@ > static char s[256]; > double x = rand() / (double)RAND_MAX; > x = min + x * (max - min); > - uszprintf(s, sizeof s, "%.1f", x); > + snprintf(s, sizeof s, "%.1f", x); > return s; > } -- Milan Mimica http://sparklet.sf.net |