Handle HAVE_STDINT_H variable in the new cmake file
This commit is contained in:
@@ -70,7 +70,6 @@ ENDIF( EXIV2_ENABLE_COMMERCIAL )
|
||||
|
||||
# checking for Header files
|
||||
check_include_file( "inttypes.h" have_inttypes_h )
|
||||
check_include_file( "stdint.h" HAVE_STDINT_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 )
|
||||
@@ -111,8 +110,7 @@ IF( NOT MSVC )
|
||||
SET( HAVE_PID_T TRUE )
|
||||
ENDIF( NOT MSVC )
|
||||
|
||||
SET( EXV_SYMBOLS HAVE_STDINT_H
|
||||
HAVE_STDLIB_H
|
||||
SET( EXV_SYMBOLS HAVE_STDLIB_H
|
||||
HAVE_STRCHR
|
||||
HAVE_STRCHR_R
|
||||
HAVE_STRERROR
|
||||
|
||||
@@ -62,8 +62,8 @@
|
||||
// Definition to indicate if stdbool.h conforms to C99.
|
||||
#cmakedefine EXV_HAVE_STDBOOL_H
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#cmakedefine EXV_HAVE_STDINT_H 1
|
||||
// Definition to indicate if you have the <stdint.h> header file.
|
||||
#cmakedefine EXV_HAVE_STDINT_H
|
||||
|
||||
#ifndef EXV_HAVE_STDINT_H
|
||||
#if defined(__MINGW32__) || defined(__MINGW64__)
|
||||
|
||||
@@ -27,6 +27,7 @@ check_include_file( "unistd.h" EXV_HAVE_UNISTD_H )
|
||||
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 )
|
||||
|
||||
if (NOT EXV_HAVE_LIBINTL_H)
|
||||
set(EXV_ENABLE_NLS 0)
|
||||
|
||||
Reference in New Issue
Block a user