aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJohannes Schickel2012-01-10 15:38:42 +0100
committerJohannes Schickel2012-01-10 16:13:29 +0100
commita3e06d507449f1b736c19cbd46662383f59e75df (patch)
treee9b1a56dc43b79d37f0e7130738487f462ef0a4c /configure
parent3606ebed6abbfc79f0cc5373aae80bd78667f876 (diff)
downloadscummvm-rg350-a3e06d507449f1b736c19cbd46662383f59e75df.tar.gz
scummvm-rg350-a3e06d507449f1b736c19cbd46662383f59e75df.tar.bz2
scummvm-rg350-a3e06d507449f1b736c19cbd46662383f59e75df.zip
CONFIGURE: Make 32bit pointer check a bit safer.
This adapts the check to be similar to the find_type_with_size check, i.e. it assigns a value to test_array and also returns 0. Should not be required, at least builtbot went fine, but better be safe and sorry.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index 4f0cf9545a..5194680fcb 100755
--- a/configure
+++ b/configure
@@ -1712,6 +1712,8 @@ pointer_is_32bit() {
cat > tmp_pointer_is_32bit.cpp << EOF
int main() {
static int test_array[1 - 2 * !(sizeof(void *) == 4)];
+ test_array[0] = 0;
+ return 0;
}
EOF
$CXX $CXXFLAGS -c -o $TMPO.o tmp_pointer_is_32bit.cpp 2>/dev/null