aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorEugene Sandulenko2012-01-08 22:41:52 +0000
committerEugene Sandulenko2012-01-08 22:41:52 +0000
commitfed0ef350d51d16566137ec975c7bfcbbccecaae (patch)
tree7d704309520358409b39be37d0efdb5b4d050f20 /configure
parent00242281006dd26204a3b438f1ecb38928bfb75f (diff)
downloadscummvm-rg350-fed0ef350d51d16566137ec975c7bfcbbccecaae.tar.gz
scummvm-rg350-fed0ef350d51d16566137ec975c7bfcbbccecaae.tar.bz2
scummvm-rg350-fed0ef350d51d16566137ec975c7bfcbbccecaae.zip
CONFIGURE: Better test for 32-bitness courtsey of LordHoto
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 1 insertions, 3 deletions
diff --git a/configure b/configure
index 1be4284184..c10e10aab1 100755
--- a/configure
+++ b/configure
@@ -1711,9 +1711,7 @@ EOF
pointer_is_32bit() {
cat > tmp_pointer_is_32bit.cpp << EOF
int main() {
- void *p;
- int v = (int)p;
- return 0;
+ static int test_array[1 - 2 * !(sizeof(void *) == 4)];
}
EOF
$CXX $CXXFLAGS -c -o $TMPO.o tmp_pointer_is_32bit.cpp 2>/dev/null