From: Michihiro NAKAJIMA Date: Wed, 14 Oct 2009 10:34:54 +0000 (-0400) Subject: Add check that int32_t is available, and define it if not. X-Git-Tag: v2.8.0~295 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5dcb6ce884d814f1b93ce4aa8ce7463196568e08;p=thirdparty%2Flibarchive.git Add check that int32_t is available, and define it if not. SVN-Revision: 1519 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 11f511dc0..ed2fde01a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -487,6 +487,13 @@ IF(NOT HAVE_ID_T) ENDIF(WIN32) ENDIF(NOT HAVE_ID_T) # +CHECK_TYPE_SIZE(int32_t INT32_T) +IF(NOT HAVE_INT32_T) + IF(MSVC) + SET(int32_t "int") + ENDIF(MSVC) +ENDIF(NOT HAVE_INT32_T) +# CHECK_TYPE_SIZE(int64_t INT64_T) IF(NOT HAVE_INT64_T) IF(MSVC) diff --git a/build/cmake/config.h.in b/build/cmake/config.h.in index 416ffc18a..be3e0463e 100644 --- a/build/cmake/config.h.in +++ b/build/cmake/config.h.in @@ -655,6 +655,9 @@ /* Define to `unsigned long' if does not define. */ #cmakedefine id_t ${id_t} +/* Define to `int' if doesn't define. */ +#cmakedefine int32_t ${int32_t} + /* Define to the type of a signed integer type of width exactly 64 bits if such a type exists and the standard includes do not define it. */ #cmakedefine int64_t ${int64_t}