Further fix SIZEOF_VOIDP in SDL_config.h.in
authorEdward Rudd <urkle@outoforder.cc>
Wed, 31 Jul 2013 12:13:26 -0400
changeset 7554 4b653ef6050d
parent 7553 f0091f8eae33
child 7555 93b540e4db8a
Further fix SIZEOF_VOIDP in SDL_config.h.in The configure script was still overwriting SIZEOF_VOIDP so both ended up as either 4 or 8 depending on the arch. This simply removes the check from configure.in
configure
configure.in
--- a/configure	Wed Jul 31 11:00:23 2013 -0400
+++ b/configure	Wed Jul 31 12:13:26 2013 -0400
@@ -16853,39 +16853,6 @@
 
 fi
 
-# The cast to long int works around a bug in the HP C Compiler
-# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
-# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
-# This bug is HP SR number 8606223364.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
-$as_echo_n "checking size of void*... " >&6; }
-if ${ac_cv_sizeof_voidp+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
-
-else
-  if test "$ac_cv_type_voidp" = yes; then
-     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error 77 "cannot compute sizeof (void*)
-See \`config.log' for more details" "$LINENO" 5; }
-   else
-     ac_cv_sizeof_voidp=0
-   fi
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
-$as_echo "$ac_cv_sizeof_voidp" >&6; }
-
-
-
-cat >>confdefs.h <<_ACEOF
-#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
-_ACEOF
-
-
 
 # Check whether --enable-gcc-atomics was given.
 if test "${enable_gcc_atomics+set}" = set; then :
--- a/configure.in	Wed Jul 31 11:00:23 2013 -0400
+++ b/configure.in	Wed Jul 31 12:13:26 2013 -0400
@@ -265,7 +265,7 @@
     AC_CHECK_MEMBER(struct sigaction.sa_sigaction,[AC_DEFINE(HAVE_SA_SIGACTION)], ,[#include <signal.h>])
 fi
 
-AC_CHECK_SIZEOF(void*)
+dnl AC_CHECK_SIZEOF(void*)
 
 dnl See whether we can use gcc atomic operations on this architecture
 AC_ARG_ENABLE(gcc-atomics,