]> granicus.if.org Git - python/commitdiff
Issue 10052: merge fix from 3.2.
authorMark Dickinson <dickinsm@gmail.com>
Sun, 2 Dec 2012 13:21:37 +0000 (13:21 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sun, 2 Dec 2012 13:21:37 +0000 (13:21 +0000)
1  2 
Include/pyport.h
configure
configure.ac
pyconfig.h.in

Simple merge
diff --cc configure
Simple merge
diff --cc configure.ac
index 4d4f05fb38ac6b26cd71f991b75d0aea4f409de7,ccb42d44cc2eadf41120c5912b0209ed45d44b36..2738703b1b5f569c88447e14637965453d00b29d
@@@ -1638,14 -1469,32 +1638,34 @@@ AC_TYPE_PID_
  AC_DEFINE_UNQUOTED([RETSIGTYPE],[void],[assume C89 semantics that RETSIGTYPE is always void])
  AC_TYPE_SIZE_T
  AC_TYPE_UID_T
+ # There are two separate checks for each of the exact-width integer types we
+ # need.  First we check whether the type is available using the usual
+ # AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h>
+ # and <stdint.h> where available).  We then also use the special type checks of
+ # the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available
+ # directly, #define's uint32_t to be a suitable type.
+ AC_CHECK_TYPE(uint32_t,
+   AC_DEFINE(HAVE_UINT32_T, 1, [Define if your compiler provides uint32_t.]),,)
  AC_TYPE_UINT32_T
+ AC_CHECK_TYPE(uint64_t,
+   AC_DEFINE(HAVE_UINT64_T, 1, [Define if your compiler provides uint64_t.]),,)
  AC_TYPE_UINT64_T
+ AC_CHECK_TYPE(int32_t,
+   AC_DEFINE(HAVE_INT32_T, 1, [Define if your compiler provides int32_t.]),,)
  AC_TYPE_INT32_T
+ AC_CHECK_TYPE(int64_t,
+   AC_DEFINE(HAVE_INT64_T, 1, [Define if your compiler provides int64_t.]),,)
  AC_TYPE_INT64_T
  AC_CHECK_TYPE(ssize_t,
    AC_DEFINE(HAVE_SSIZE_T, 1, [Define if your compiler provides ssize_t]),,)
 +AC_CHECK_TYPE(__uint128_t,
 +  AC_DEFINE(HAVE_GCC_UINT128_T, 1, [Define if your compiler provides __uint128_t]),,)
  
  # Sizes of various common basic types
  # ANSI C requires sizeof(char) == 1, so no need to check it
diff --cc pyconfig.h.in
Simple merge