From abd28a6a9eeca0c843c04a84c3c16d1a3ce6ae49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20D=C3=ADaz=20M=C3=A1s?= Date: Wed, 2 May 2018 23:04:20 +0200 Subject: [PATCH] Remove EXV_HAVE_STRCHR --- config/config.h.cmake | 3 --- config/generateConfigFile.cmake | 1 - include/exiv2/exv_msvc.h | 3 --- src/version.cpp | 6 ------ 4 files changed, 13 deletions(-) diff --git a/config/config.h.cmake b/config/config.h.cmake index 2b7d30ee..3406d2c2 100644 --- a/config/config.h.cmake +++ b/config/config.h.cmake @@ -63,9 +63,6 @@ // Define if you have the header file. #cmakedefine EXV_HAVE_STDLIB_H -// Define if you have the strchr function. -#cmakedefine EXV_HAVE_STRCHR - // Define if you have the strerror function. #cmakedefine EXV_HAVE_STRERROR diff --git a/config/generateConfigFile.cmake b/config/generateConfigFile.cmake index 83da9513..5ffb8f88 100644 --- a/config/generateConfigFile.cmake +++ b/config/generateConfigFile.cmake @@ -23,7 +23,6 @@ check_function_exists( gmtime_r EXV_HAVE_GMTIME_R ) check_function_exists( memset EXV_HAVE_MEMSET ) check_function_exists( mmap EXV_HAVE_MMAP ) check_function_exists( munmap EXV_HAVE_MUNMAP ) -check_function_exists( strchr EXV_HAVE_STRCHR ) check_function_exists( strerror EXV_HAVE_STRERROR ) check_function_exists( strerror_r EXV_HAVE_STRERROR_R ) check_function_exists( strtol EXV_HAVE_STRTOL ) diff --git a/include/exiv2/exv_msvc.h b/include/exiv2/exv_msvc.h index d6d5ae01..8bd711cd 100644 --- a/include/exiv2/exv_msvc.h +++ b/include/exiv2/exv_msvc.h @@ -88,9 +88,6 @@ /* Define to 1 if you have the header file. */ /* #undef EXV_HAVE_STDLIB_H */ -/* Define to 1 if you have the `strchr' function. */ -#define EXV_HAVE_STRCHR 1 - /* Define to 1 if you have the `strerror' function. */ #define EXV_HAVE_STRERROR 1 diff --git a/src/version.cpp b/src/version.cpp index c970f62f..bb8144ce 100644 --- a/src/version.cpp +++ b/src/version.cpp @@ -260,7 +260,6 @@ void Exiv2::dumpLibraryInfo(std::ostream& os,const exv_grep_keys_t& keys) int have_stdint =0; int have_stdlib =0; int have_strlib =0; - int have_strchr =0; int have_strerror =0; int have_strerror_r =0; int have_strings_h =0; @@ -333,10 +332,6 @@ void Exiv2::dumpLibraryInfo(std::ostream& os,const exv_grep_keys_t& keys) have_stdlib=1; #endif -#ifdef EXV_HAVE_STRCHR - have_strchr=1; -#endif - #ifdef EXV_HAVE_STRERROR have_strerror=1; #endif @@ -516,7 +511,6 @@ void Exiv2::dumpLibraryInfo(std::ostream& os,const exv_grep_keys_t& keys) output(os,keys,"have_stdint" ,have_stdint ); output(os,keys,"have_stdlib" ,have_stdlib ); 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_strings_h" ,have_strings_h );