Permalink
Browse files

Rewrite detection of VA_LIST_IS_ARRAY.

I'm not sure exactly why Python needs this (is it only a memcpy()
optimization?)

But osh now works on the 'ubuntu32' VM!
  • Loading branch information...
Andy Chu
Andy Chu committed Sep 8, 2017
1 parent 4b828dc commit 66a79e14fb974ab93618718103dc4e7f35f33741
Showing with 13 additions and 3 deletions.
  1. +0 −3 Python-2.7.13/pyconfig.h
  2. +13 −0 configure
View
@@ -1013,9 +1013,6 @@
/* Define if you want to use MacPython modules on MacOSX in unix-Python. */
/* #undef USE_TOOLBOX_OBJECT_GLUE */
/* Define if a va_list is an array of some kind */
#define VA_LIST_IS_ARRAY 1
/* Define if you want SIGFPE handled (see Include/pyfpe.h). */
/* #undef WANT_SIGFPE_HANDLER */
View
@@ -229,6 +229,19 @@ detect_c_language() {
# TODO: Detect header and size.
echo '#define HAVE_WCHAR_H 1'
echo '#define SIZEOF_WCHAR_T 4'
cat >$TMP/detect_va_list.c <<EOF
#include <stdarg.h> /* C89 */
int main() {
va_list list1, list2;
list1 = list2;
}
EOF
if cc_quiet $TMP/detect_va_list.c; then
echo '' # not an array
else
echo '#define VA_LIST_IS_ARRAY 1'
fi
}
# Another way of working: set detected-config.mk ?

0 comments on commit 66a79e1

Please sign in to comment.