remove configure test for inline keyword (#1231)
We require C99, so a configure test for this standard feature is not needed.
This commit is contained in:
parent
f60c9e54f5
commit
791dc83119
|
@ -173,12 +173,9 @@ typedef int Py_ssize_clean_t;
|
||||||
/* fastest possible local call under MSVC */
|
/* fastest possible local call under MSVC */
|
||||||
#define Py_LOCAL(type) static type __fastcall
|
#define Py_LOCAL(type) static type __fastcall
|
||||||
#define Py_LOCAL_INLINE(type) static __inline type __fastcall
|
#define Py_LOCAL_INLINE(type) static __inline type __fastcall
|
||||||
#elif defined(USE_INLINE)
|
|
||||||
#define Py_LOCAL(type) static type
|
|
||||||
#define Py_LOCAL_INLINE(type) static inline type
|
|
||||||
#else
|
#else
|
||||||
#define Py_LOCAL(type) static type
|
#define Py_LOCAL(type) static type
|
||||||
#define Py_LOCAL_INLINE(type) static type
|
#define Py_LOCAL_INLINE(type) static inline type
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Py_MEMCPY is kept for backwards compatibility,
|
/* Py_MEMCPY is kept for backwards compatibility,
|
||||||
|
|
|
@ -66,10 +66,8 @@ static const char copyright[] =
|
||||||
#pragma warning(disable: 4710) /* who cares if functions are not inlined ;-) */
|
#pragma warning(disable: 4710) /* who cares if functions are not inlined ;-) */
|
||||||
/* fastest possible local call under MSVC */
|
/* fastest possible local call under MSVC */
|
||||||
#define LOCAL(type) static __inline type __fastcall
|
#define LOCAL(type) static __inline type __fastcall
|
||||||
#elif defined(USE_INLINE)
|
|
||||||
#define LOCAL(type) static inline type
|
|
||||||
#else
|
#else
|
||||||
#define LOCAL(type) static type
|
#define LOCAL(type) static inline type
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* error codes */
|
/* error codes */
|
||||||
|
|
|
@ -695,7 +695,6 @@ ARFLAGS
|
||||||
ac_ct_AR
|
ac_ct_AR
|
||||||
AR
|
AR
|
||||||
RANLIB
|
RANLIB
|
||||||
USE_INLINE
|
|
||||||
GNULD
|
GNULD
|
||||||
LINKCC
|
LINKCC
|
||||||
LDVERSION
|
LDVERSION
|
||||||
|
@ -5839,56 +5838,6 @@ esac
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
|
||||||
$as_echo "$GNULD" >&6; }
|
$as_echo "$GNULD" >&6; }
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
|
|
||||||
$as_echo_n "checking for inline... " >&6; }
|
|
||||||
if ${ac_cv_c_inline+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
ac_cv_c_inline=no
|
|
||||||
for ac_kw in inline __inline__ __inline; do
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
#ifndef __cplusplus
|
|
||||||
typedef int foo_t;
|
|
||||||
static $ac_kw foo_t static_foo () {return 0; }
|
|
||||||
$ac_kw foo_t foo () {return 0; }
|
|
||||||
#endif
|
|
||||||
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_compile "$LINENO"; then :
|
|
||||||
ac_cv_c_inline=$ac_kw
|
|
||||||
fi
|
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
||||||
test "$ac_cv_c_inline" != no && break
|
|
||||||
done
|
|
||||||
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
|
|
||||||
$as_echo "$ac_cv_c_inline" >&6; }
|
|
||||||
|
|
||||||
case $ac_cv_c_inline in
|
|
||||||
inline | yes) ;;
|
|
||||||
*)
|
|
||||||
case $ac_cv_c_inline in
|
|
||||||
no) ac_val=;;
|
|
||||||
*) ac_val=$ac_cv_c_inline;;
|
|
||||||
esac
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
|
||||||
#ifndef __cplusplus
|
|
||||||
#define inline $ac_val
|
|
||||||
#endif
|
|
||||||
_ACEOF
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if test "$ac_cv_c_inline" != no ; then
|
|
||||||
|
|
||||||
$as_echo "#define USE_INLINE 1" >>confdefs.h
|
|
||||||
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
|
||||||
$as_echo_n "checking for --enable-shared... " >&6; }
|
$as_echo_n "checking for --enable-shared... " >&6; }
|
||||||
# Check whether --enable-shared was given.
|
# Check whether --enable-shared was given.
|
||||||
|
|
|
@ -1078,13 +1078,6 @@ case `"$ac_prog" -V 2>&1 < /dev/null` in
|
||||||
esac
|
esac
|
||||||
AC_MSG_RESULT($GNULD)
|
AC_MSG_RESULT($GNULD)
|
||||||
|
|
||||||
AC_C_INLINE
|
|
||||||
if test "$ac_cv_c_inline" != no ; then
|
|
||||||
AC_DEFINE(USE_INLINE, 1, [Define to use the C99 inline keyword.])
|
|
||||||
AC_SUBST(USE_INLINE)
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
AC_MSG_CHECKING(for --enable-shared)
|
AC_MSG_CHECKING(for --enable-shared)
|
||||||
AC_ARG_ENABLE(shared,
|
AC_ARG_ENABLE(shared,
|
||||||
AS_HELP_STRING([--enable-shared], [disable/enable building shared python library]))
|
AS_HELP_STRING([--enable-shared], [disable/enable building shared python library]))
|
||||||
|
|
|
@ -1342,9 +1342,6 @@
|
||||||
/* Define if you want to use computed gotos in ceval.c. */
|
/* Define if you want to use computed gotos in ceval.c. */
|
||||||
#undef USE_COMPUTED_GOTOS
|
#undef USE_COMPUTED_GOTOS
|
||||||
|
|
||||||
/* Define to use the C99 inline keyword. */
|
|
||||||
#undef USE_INLINE
|
|
||||||
|
|
||||||
/* Enable extensions on AIX 3, Interix. */
|
/* Enable extensions on AIX 3, Interix. */
|
||||||
#ifndef _ALL_SOURCE
|
#ifndef _ALL_SOURCE
|
||||||
# undef _ALL_SOURCE
|
# undef _ALL_SOURCE
|
||||||
|
@ -1484,12 +1481,6 @@
|
||||||
/* Define to `int' if <sys/types.h> doesn't define. */
|
/* Define to `int' if <sys/types.h> doesn't define. */
|
||||||
#undef gid_t
|
#undef gid_t
|
||||||
|
|
||||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
|
||||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
|
||||||
#ifndef __cplusplus
|
|
||||||
#undef inline
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Define to `int' if <sys/types.h> does not define. */
|
/* Define to `int' if <sys/types.h> does not define. */
|
||||||
#undef mode_t
|
#undef mode_t
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue