[Scummvm-git-logs] scummvm master -> 19512b261aa9c109ab3f15f70fecd987c45ccec6
sev-
sev at scummvm.org
Sun May 9 10:58:34 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
19512b261a CONFIGURE: Improve endianness check. Courtesy of Fedora
Commit: 19512b261aa9c109ab3f15f70fecd987c45ccec6
https://github.com/scummvm/scummvm/commit/19512b261aa9c109ab3f15f70fecd987c45ccec6
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2021-05-09T12:58:11+02:00
Commit Message:
CONFIGURE: Improve endianness check. Courtesy of Fedora
Changed paths:
configure
diff --git a/configure b/configure
index 9af7497a58..d9afdcc180 100755
--- a/configure
+++ b/configure
@@ -2359,11 +2359,11 @@ fi
#
echo_n "Checking endianness... "
cat > tmp_endianness_check.cpp << EOF
-unsigned short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
-unsigned short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
+__attribute__ ((used)) unsigned short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
+__attribute__ ((used)) unsigned short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
const char * _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; return s; }
-unsigned short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
-unsigned short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
+__attribute__ ((used)) unsigned short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
+__attribute__ ((used)) unsigned short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
const char * _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; return s; }
int main() { _ascii (); _ebcdic (); return 0; }
EOF
More information about the Scummvm-git-logs
mailing list