From: Jan P. <pa...@us...> - 2004-05-21 14:23:16
|
Update of /cvsroot/libexif/libexif/libexif In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30726 Modified Files: exif-data.c Log Message: strnicmp was not a typo. *nix compilers don't like it therefore I changed it to strncasecmp. Hopefully non-*nix developers will be able to replace it with strnicmp (e.g. via define in their config.h) Index: exif-data.c =================================================================== RCS file: /cvsroot/libexif/libexif/libexif/exif-data.c,v retrieving revision 1.44 retrieving revision 1.45 diff -u -d -r1.44 -r1.45 --- exif-data.c 20 May 2004 10:50:35 -0000 1.44 +++ exif-data.c 21 May 2004 14:23:07 -0000 1.45 @@ -689,7 +689,7 @@ /* Pentax & some variant of Nikon */ if ((e->size >= 2) && (e->data[0] == 0x00) && (e->data[1] == 0x1b)) { - if (em && !strncmp (exif_entry_get_value (em, value, sizeof(value)), "Nikon", 5)) { + if (em && !strncasecmp (exif_entry_get_value (em, value, sizeof(value)), "Nikon", 5)) { data->priv->md = exif_mnote_data_olympus_new (); } else { data->priv->md = exif_mnote_data_pentax_new (); |