[Development] configure qtbase on mac os

Chris Meyer cmeyer1969+qt at gmail.com
Mon Nov 7 22:23:31 CET 2011


2011/11/7 Thiago Macieira <thiago.macieira at 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



More information about the Development mailing list