[x264-devel] [PATCH] Fix build on Solaris 10 SPARC

Måns Rullgård mans at mansr.com
Tue Nov 23 08:39:31 CET 2010


Sean McGovern <gseanmcg at gmail.com> writes:

> How about replacing the current endian test with this snippet from
> autoconf's AC_C_BIGENDIAN test and then just testing against the
> return code?
>
> 	     union
> 	     {
> 	       long int l;
> 	       char c[sizeof (long int)];
> 	     } u;
> 	     u.l = 1;
> 	     return u.c[sizeof (long int) - 1] == 1;

How do you intend for that to work if cross-compiling?

-- 
Måns Rullgård
mans at mansr.com


More information about the x264-devel mailing list