Browse Source

liblzma: Drop unused code providing uintmax_t and intmax_t

The lzma library code we use within CMake does not need these.
Brad King 5 years ago
parent
commit
3cd5ed7cb1
2 changed files with 0 additions and 16 deletions
  1. 0 2
      Utilities/cmliblzma/CMakeLists.txt
  2. 0 14
      Utilities/cmliblzma/config.h.in

+ 0 - 2
Utilities/cmliblzma/CMakeLists.txt

@@ -63,12 +63,10 @@ set(HAVE_MF_HC4 1)
 CHECK_TYPE_SIZE(int16_t INT16_T)
 CHECK_TYPE_SIZE(int32_t INT32_T)
 CHECK_TYPE_SIZE(int64_t INT64_T)
-CHECK_TYPE_SIZE(intmax_t INTMAX_T)
 CHECK_TYPE_SIZE(uint8_t UINT8_T)
 CHECK_TYPE_SIZE(uint16_t UINT16_T)
 CHECK_TYPE_SIZE(uint32_t UINT32_T)
 CHECK_TYPE_SIZE(uint64_t UINT64_T)
-CHECK_TYPE_SIZE(uintmax_t UINTMAX_T)
 
 CHECK_TYPE_SIZE("short" SIZE_OF_SHORT)
 CHECK_TYPE_SIZE("int" SIZE_OF_INT)

+ 0 - 14
Utilities/cmliblzma/config.h.in

@@ -7,13 +7,11 @@
 #cmakedefine HAVE_INT16_T
 #cmakedefine HAVE_INT32_T
 #cmakedefine HAVE_INT64_T
-#cmakedefine HAVE_INTMAX_T
 
 #cmakedefine HAVE_UINT8_T
 #cmakedefine HAVE_UINT16_T
 #cmakedefine HAVE_UINT32_T
 #cmakedefine HAVE_UINT64_T
-#cmakedefine HAVE_UINTMAX_T
 
 /* We might have the types we want under other spellings. */
 #cmakedefine HAVE___INT64
@@ -166,18 +164,6 @@ typedef unsigned char uint8_t;
 #error No 8-bit unsigned integer type was found.
 #endif
 
-/* Define intmax_t and uintmax_t if they are not already defined. */
-#if !defined(HAVE_INTMAX_T)
-typedef int64_t intmax_t;
-#define INTMAX_MIN INT64_MIN
-#define INTMAX_MAX INT64_MAX
-#endif
-
-#if !defined(HAVE_UINTMAX_T)
-typedef uint64_t uintmax_t;
-#endif
-
-
 #cmakedefine uintptr_t @uintptr_t@
 
 #cmakedefine WORDS_BIGENDIAN 1