Remove unused HAVE_SYS_TIME_H and TM_IN_SYS_TIME variables
This commit is contained in:
+1
-13
@@ -71,23 +71,12 @@ ENDIF( EXIV2_ENABLE_COMMERCIAL )
|
||||
# checking for Header files
|
||||
check_include_file( "inttypes.h" have_inttypes_h )
|
||||
check_include_file( "wchar.h" HAVE_WCHAR_H )
|
||||
check_include_file( "sys/time.h" HAVE_SYS_TIME_H )
|
||||
check_include_file( "sys/types.h" HAVE_SYS_TYPES_H )
|
||||
check_include_file( "regex.h" HAVE_REGEX )
|
||||
|
||||
check_function_exists( timegm HAVE_TIMEGM )
|
||||
check_function_exists( vprintf HAVE_VPRINTF )
|
||||
|
||||
# struct tm in sys/time.h
|
||||
IF( HAVE_SYS_TIME_H )
|
||||
CHECK_C_SOURCE_COMPILES( "#include <sys/time.h>
|
||||
int main() {
|
||||
struct tm t;
|
||||
return 0;
|
||||
}" TM_IN_SYS_TIME )
|
||||
ENDIF( HAVE_SYS_TIME_H )
|
||||
|
||||
|
||||
# time.h and sys/time.h can be included in the same file
|
||||
CHECK_C_SOURCE_COMPILES( "#include <time.h>
|
||||
#include <sys/time.h>
|
||||
@@ -100,8 +89,7 @@ IF( NOT MSVC )
|
||||
SET( HAVE_PID_T TRUE )
|
||||
ENDIF( NOT MSVC )
|
||||
|
||||
SET( EXV_SYMBOLS HAVE_SYS_TIME_H
|
||||
HAVE_SYS_TYPES_H
|
||||
SET( EXV_SYMBOLS HAVE_SYS_TYPES_H
|
||||
HAVE_TIMEGM
|
||||
HAVE_VPRINTF
|
||||
HAVE_WCHAR_H
|
||||
|
||||
@@ -101,9 +101,6 @@
|
||||
// Definition to indicate if you have the <sys/stat.h> header file.
|
||||
#cmakedefine EXV_HAVE_SYS_STAT_H
|
||||
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */
|
||||
#cmakedefine EXV_HAVE_SYS_TIME_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#cmakedefine EXV_HAVE_SYS_TYPES_H 1
|
||||
|
||||
@@ -160,9 +157,6 @@
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||
#define TIME_WITH_SYS_TIME 1
|
||||
|
||||
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
|
||||
#cmakedefine TM_IN_SYS_TIME 1
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
#cmakedefine const
|
||||
|
||||
|
||||
@@ -92,9 +92,6 @@
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#undef HAVE_SYS_STAT_H
|
||||
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */
|
||||
#undef HAVE_SYS_TIME_H
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#undef HAVE_SYS_TYPES_H
|
||||
|
||||
@@ -156,9 +153,6 @@
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||
#undef TIME_WITH_SYS_TIME
|
||||
|
||||
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
|
||||
#undef TM_IN_SYS_TIME
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
#undef const
|
||||
|
||||
|
||||
@@ -101,9 +101,6 @@
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
/* #undef EXV_HAVE_SYS_STAT_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */
|
||||
/* #undef EXV_HAVE_SYS_TIME_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
/* #undef EXV_HAVE_SYS_TYPES_H */
|
||||
|
||||
@@ -159,9 +156,6 @@
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||
#define TIME_WITH_SYS_TIME 1
|
||||
|
||||
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
|
||||
/* #undef TM_IN_SYS_TIME */
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
/* #undef const */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user