Re: [AD] load_font patch

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Daniel Schlyder wrote:

src/fontgrx.c: In function `load_grx_or_bios_font':
src/fontgrx.c:104: warning: implicit declaration of function `stricmp'

(stricmp() isn't ANSI C. I replaced it with Allegro's ustricmp().)

That line should be:

   char tmp[16];
   ...
   if (ustricmp(get_extension(filename), uconvert_ascii("fnt", tmp)) == 0)

BTW, we have our own implementation of stricmp() if libc doesn't provide it.

Peter




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/