Handle HAVE_STRTOL variable in the new cmake file

v0.27.3
Luis Diaz Mas 8 years ago
parent 1a34a55383
commit 6cef95a25d

@ -77,7 +77,6 @@ check_include_file( "sys/types.h" HAVE_SYS_TYPES_H )
check_include_file( "sys/mman.h" HAVE_SYS_MMAN_H ) check_include_file( "sys/mman.h" HAVE_SYS_MMAN_H )
check_include_file( "regex.h" HAVE_REGEX ) check_include_file( "regex.h" HAVE_REGEX )
check_function_exists( strtol HAVE_STRTOL )
check_function_exists( timegm HAVE_TIMEGM ) check_function_exists( timegm HAVE_TIMEGM )
check_function_exists( vprintf HAVE_VPRINTF ) check_function_exists( vprintf HAVE_VPRINTF )
@ -103,8 +102,7 @@ IF( NOT MSVC )
SET( HAVE_PID_T TRUE ) SET( HAVE_PID_T TRUE )
ENDIF( NOT MSVC ) ENDIF( NOT MSVC )
SET( EXV_SYMBOLS HAVE_STRTOL SET( EXV_SYMBOLS HAVE_SYS_MMAN_H
HAVE_SYS_MMAN_H
HAVE_SYS_STAT_H HAVE_SYS_STAT_H
HAVE_SYS_TIME_H HAVE_SYS_TIME_H
HAVE_SYS_TYPES_H HAVE_SYS_TYPES_H

@ -89,8 +89,8 @@
// Definition to indicate if you have the <strings.h> header file. // Definition to indicate if you have the <strings.h> header file.
#cmakedefine EXV_HAVE_STRINGS_H #cmakedefine EXV_HAVE_STRINGS_H
/* Define to 1 if you have the `strtol' function. */ // Definition to indicate if you have the `strtol' function.
#cmakedefine EXV_HAVE_STRTOL 1 #cmakedefine EXV_HAVE_STRTOL
// Definition to indicate if you have the `mmap' function. // Definition to indicate if you have the `mmap' function.
#cmakedefine EXV_HAVE_MMAP #cmakedefine EXV_HAVE_MMAP

@ -23,6 +23,7 @@ check_function_exists( munmap EXV_HAVE_MUNMAP )
check_function_exists( strchr EXV_HAVE_STRCHR ) check_function_exists( strchr EXV_HAVE_STRCHR )
check_function_exists( strerror EXV_HAVE_STRERROR ) check_function_exists( strerror EXV_HAVE_STRERROR )
check_function_exists( strerror_r EXV_HAVE_STRERROR_R ) check_function_exists( strerror_r EXV_HAVE_STRERROR_R )
check_function_exists( strtol EXV_HAVE_STRTOL )
# TODO : Do something about EXV_STRERROR_R_CHAR_P # TODO : Do something about EXV_STRERROR_R_CHAR_P

Loading…
Cancel
Save