Handle HAVE_STDLIB_H variable in the new cmake file

v0.27.3
Luis Diaz Mas 8 years ago
parent 1d1fb30bcf
commit 4aee441374

@ -70,7 +70,6 @@ ENDIF( EXIV2_ENABLE_COMMERCIAL )
# checking for Header files
check_include_file( "inttypes.h" have_inttypes_h )
check_include_file( "stdlib.h" HAVE_STDLIB_H )
check_include_file( "string.h" HAVE_STRING_H )
check_include_file( "strings.h" HAVE_STRINGS_H )
check_include_file( "wchar.h" HAVE_WCHAR_H )
@ -110,8 +109,7 @@ IF( NOT MSVC )
SET( HAVE_PID_T TRUE )
ENDIF( NOT MSVC )
SET( EXV_SYMBOLS HAVE_STDLIB_H
HAVE_STRCHR
SET( EXV_SYMBOLS HAVE_STRCHR
HAVE_STRCHR_R
HAVE_STRERROR
HAVE_STRERROR_R

@ -71,8 +71,8 @@
#endif
#endif
/* Define to 1 if you have the <stdlib.h> header file. */
#cmakedefine EXV_HAVE_STDLIB_H 1
// Definition to indicate if you have the <stdlib.h> header file.
#cmakedefine EXV_HAVE_STDLIB_H
/* Define to 1 if you have the `strchr' function. */
#cmakedefine EXV_HAVE_STRCHR 1

@ -28,6 +28,7 @@ check_include_file( "memory.h" EXV_HAVE_MEMORY_H )
check_include_file( "process.h" EXV_HAVE_PROCESS_H )
check_include_file( "stdbool.h" EXV_HAVE_STDBOOL_H )
check_include_file( "stdint.h" EXV_HAVE_STDINT_H )
check_include_file( "stdlib.h" EXV_HAVE_STDLIB_H )
if (NOT EXV_HAVE_LIBINTL_H)
set(EXV_ENABLE_NLS 0)

Loading…
Cancel
Save