Handle HAVE_STDINT_H variable in the new cmake file

This commit is contained in:
Luis Diaz Mas
2017-07-31 18:05:26 +02:00
parent 1e7c747ad8
commit 1d1fb30bcf
3 changed files with 4 additions and 5 deletions
+1 -3
View File
@@ -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
+2 -2
View File
@@ -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__)
+1
View File
@@ -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)