Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
a3999908
Commit
a3999908
authored
Jul 28, 2002
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better big/little endian test
Originally committed as revision 830 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
59eb2ed1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
configure
configure
+16
-5
No files found.
configure
View file @
a3999908
...
...
@@ -187,15 +187,26 @@ if test "$win32" = "yes" ; then
network
=
"no"
fi
# endianness : guess with cpu type. Should also use prefix
if
test
"
$cpu
"
=
"powerpc"
;
then
bigendian
=
"yes"
fi
cc
=
"
${
cross_prefix
}${
cc
}
"
ar
=
"
${
cross_prefix
}${
ar
}
"
strip
=
"
${
cross_prefix
}${
strip
}
"
# ---
# big/little endian test
cat
>
$TMPC
<<
EOF
#include <inttypes.h>
int main(int argc, char ** argv){
volatile uint32_t i=0x01234567;
return (*((uint8_t*)(&i))) == 0x67;
}
EOF
if
$cc
-o
$TMPO
$TMPC
2>/dev/null
;
then
$TMPO
&&
bigendian
=
"yes"
else
echo
big/little
test
failed
fi
# ---
# check availability of some header files
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment