#1046. Adding support to exiv2 --verbose --version to report have_unicode_path

v0.27.3
Robin Mills 10 years ago
parent 20c3b6328e
commit 6e4f04ff23

@ -268,6 +268,7 @@ static void output(std::ostream& os,const exv_grep_keys_t& keys,const char* name
int have_strings =0;
int have_sys_types =0;
int have_unistd =0;
int have_unicode_path=0;
#if EXV_HAVE_DECL_STRERROR_R
have_strerror_r=1;
@ -397,6 +398,10 @@ static void output(std::ostream& os,const exv_grep_keys_t& keys,const char* name
have_unistd=1;
#endif
#if EXV_UNICODE_PATH
have_unicode_path=1;
#endif
#if defined(WIN32) || defined(__CYGWIN__) || defined(__MINGW__)
// enumerate loaded libraries and determine path to executable
HMODULE handles[200];
@ -472,7 +477,7 @@ static void output(std::ostream& os,const exv_grep_keys_t& keys,const char* name
}
output(os,keys,"have_regex" ,have_regex );
output(os,keys,"have_strerror_r",have_strerror_r);
output(os,keys,"have_strerror_r" ,have_strerror_r );
output(os,keys,"have_gmtime_r" ,have_gmtime_r );
output(os,keys,"have_inttypes" ,have_inttypes );
output(os,keys,"have_libintl" ,have_libintl );
@ -487,7 +492,7 @@ static void output(std::ostream& os,const exv_grep_keys_t& keys,const char* name
output(os,keys,"have_strlib" ,have_strlib );
output(os,keys,"have_strchr" ,have_strchr );
output(os,keys,"have_strerror" ,have_strerror );
output(os,keys,"have_strerror_r",have_strerror_r);
output(os,keys,"have_strerror_r" ,have_strerror_r );
output(os,keys,"have_strings_h" ,have_strings_h );
output(os,keys,"have_strtol" ,have_strtol );
output(os,keys,"have_mmap" ,have_mmap );
@ -497,11 +502,12 @@ static void output(std::ostream& os,const exv_grep_keys_t& keys,const char* name
output(os,keys,"have_unistd_h" ,have_unistd_h );
output(os,keys,"have_sys_mman" ,have_sys_mman );
output(os,keys,"have_libz" ,have_libz );
output(os,keys,"have_xmptoolkit",have_xmptoolkit);
output(os,keys,"have_xmptoolkit" ,have_xmptoolkit );
output(os,keys,"have_bool" ,have_bool );
output(os,keys,"have_strings" ,have_strings );
output(os,keys,"have_sys_types" ,have_sys_types );
output(os,keys,"have_unistd" ,have_unistd );
output(os,keys,"have_unicode_path" ,have_unicode_path);
#if defined(__linux__)
dlclose(ph);

Loading…
Cancel
Save