From 7a728a838ef2bc58cec0f0e45b6932ab6661d5a3 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Wed, 30 Mar 2005 14:41:24 +0000 Subject: replace stricmp() by strcasecmp() #include should take care of portability of strcasecmp() git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7689 67ed7778-7388-44ab-90cf-0a291f65f57c --- libgphoto2/gphoto2-file.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'libgphoto2') diff --git a/libgphoto2/gphoto2-file.c b/libgphoto2/gphoto2-file.c index d66ade984..1a9e83f89 100644 --- a/libgphoto2/gphoto2-file.c +++ b/libgphoto2/gphoto2-file.c @@ -29,6 +29,7 @@ #include #include +#include #include "gphoto2-result.h" @@ -265,11 +266,7 @@ gp_file_open (CameraFile *file, const char *filename) dot = strrchr (filename, '.'); if (dot) { for (i = 0; mime_table[i] ; i+=2) -#ifdef HAVE_STRCASECMP if (!strcasecmp (mime_table[i], dot+1)) { -#else - if (!stricmp (mime_table[i], dot+1)) { -#endif strncpy (file->mime_type, mime_table[i+1], sizeof(file->mime_type)); break; } -- cgit v1.2.1