A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-October/069103.html below:

[Python-Dev] HAVE_UINTPTR_T test in configure.in

[Python-Dev] HAVE_UINTPTR_T test in configure.in [Python-Dev] HAVE_UINTPTR_T test in configure.inRonald Oussoren ronaldoussoren at mac.com
Sun Oct 1 10:54:48 CEST 2006
Hi,

Someone reported on the pythonmac list that HAVE_UINTPTR_T wasn't  
defined in pyconfig.h while it should have been defined. I'm looking  
into this and am now wondering whether the configure snipped below is  
correct:

AC_MSG_CHECKING(for uintptr_t support)
have_uintptr_t=no
AC_TRY_COMPILE([], [uintptr_t x; x = (uintptr_t)0;], [
   AC_DEFINE(HAVE_UINTPTR_T, 1, [Define this if you have the type  
uintptr_t.])
   have_uintptr_t=yes
])
AC_MSG_RESULT($have_uintptr_t)
if test "$have_uintptr_t" = yes ; then
AC_CHECK_SIZEOF(uintptr_t, 4)
fi

This seems to check for uintptr_t as a builtin type. Isn't one  
supposed to include <stdint.h> to get this type?

Chaning the AC_TRY_COMPILE line to the line below fixes the issue for  
me, but I've only tested on OSX and don't know if this is the right  
fix for all supported platforms.

AC_TRY_COMPILE([#include <stdint.h>], [uintptr_t x; x = (uintptr_t) 
0;], [

Ronald

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3562 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-dev/attachments/20061001/e8397f2d/attachment-0001.bin 
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4