[Scummvm-cvs-logs] SF.net SVN: scummvm:[33254] residual/trunk/configure

aquadran at users.sourceforge.net aquadran at users.sourceforge.net
Wed Jul 23 22:39:52 CEST 2008


Revision: 33254
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33254&view=rev
Author:   aquadran
Date:     2008-07-23 20:39:51 +0000 (Wed, 23 Jul 2008)

Log Message:
-----------
addded check for 'long long' type

Modified Paths:
--------------
    residual/trunk/configure

Modified: residual/trunk/configure
===================================================================
--- residual/trunk/configure	2008-07-23 19:52:37 UTC (rev 33253)
+++ residual/trunk/configure	2008-07-23 20:39:51 UTC (rev 33254)
@@ -230,7 +230,7 @@
 #
 find_type_with_size ()
 {
-for datatype in int short char long unknown; do
+for datatype in int short char long 'long long' unknown; do
 cat <<EOF >tmp_find_type_with_size.cpp
 typedef $datatype ac__type_sizeof_;
 int main() {
@@ -651,6 +651,15 @@
 echo "$type_4_byte"
 test $TMP -eq 0 || exit 1	# check exit code of subshell
 
+echo_n "Type with 8 bytes... "
+type_8_byte=`find_type_with_size 8`
+TMP="$?"
+echo "$type_8_byte"
+if test $TMP -eq 0; then
+	_def_64bit_type_signed="typedef signed $type_8_byte int64;"
+	_def_64bit_type_unsigned="typedef unsigned $type_8_byte int64;"
+fi
+
 #
 # Check whether we can use x86 asm routines
 #
@@ -1076,9 +1085,11 @@
 typedef unsigned $type_1_byte uint8;
 typedef unsigned $type_2_byte uint16;
 typedef unsigned $type_4_byte uint32;
+$_def_64bit_type_signed
 typedef signed $type_1_byte int8;
 typedef signed $type_2_byte int16;
 typedef signed $type_4_byte int32;
+$_def_64bit_type_unsigned
 
 /* Libs */
 $_def_vorbis


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list