From: <lu...@us...> - 2002-08-06 21:20:48
|
Update of /cvsroot/libexif/exif/exif In directory usw-pr-cvs1:/tmp/cvs-serv24270/exif Modified Files: main.c Log Message: 2002-08-06 Lutz Müller <lu...@us...> * configure.in: Check for locale.h * exif/main.c: Only use setlocale if locale.h is availabe. Index: main.c =================================================================== RCS file: /cvsroot/libexif/exif/exif/main.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- main.c 25 Jul 2002 16:29:45 -0000 1.18 +++ main.c 6 Aug 2002 21:20:45 -0000 1.19 @@ -53,6 +53,10 @@ # define N_(String) (String) #endif +#ifdef HAVE_LOCAL_H +# include <locale.h> +#endif + /* Old versions of popt.h don't define POPT_TABLEEND */ #ifndef POPT_TABLEEND # define POPT_TABLEEND { NULL, '\0', 0, 0, 0, NULL, NULL } @@ -208,7 +212,9 @@ char fname[1024]; FILE *f; +#ifdef HAVE_LOCALE_H setlocale (LC_ALL, ""); +#endif bindtextdomain (PACKAGE, EXIF_LOCALEDIR); textdomain (PACKAGE); |