]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Add check that int32_t is available, and define it if not.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 14 Oct 2009 10:34:54 +0000 (06:34 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 14 Oct 2009 10:34:54 +0000 (06:34 -0400)
SVN-Revision: 1519

CMakeLists.txt
build/cmake/config.h.in

index 11f511dc0b818d4f05ce8fe021723aa07892be32..ed2fde01ac86ccd2d082528448d8610b7c6c7b23 100644 (file)
@@ -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)
index 416ffc18a067962ce360509e5b05bbe023bfa515..be3e0463e670f237f70f214997c4608f84802485 100644 (file)
 /* Define to `unsigned long' if <sys/types.h> does not define. */
 #cmakedefine id_t ${id_t}
 
+/* Define to `int' if <sys/types.h> 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}