2011/11/7 Thiago Macieira <thiago.macie...@intel.com>: > On Monday, 7 de November de 2011 11:44:56 Chris Meyer wrote: >> I don't know the history of the endian test; but it seems to make more >> sense to use something direct like: >> >> int num = 1; >> if(*(char *)&num == 1) >> { >> printf("Little-Endian\n"); >> } >> else >> { >> printf("Big-Endian\n"); >> } > > That requires running the executable. You can't do that if you're cross- > compiling.
Ah. I understand. FWIW: I submitted my patch in Gerrit - http://codereview.qt-project.org/#change,8311 _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development