qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [5780] Native BSD host USB support (Juergen Lock, Lonni


From: Thiemo Seufer
Subject: Re: [Qemu-devel] [5780] Native BSD host USB support (Juergen Lock, Lonnie Mendez)
Date: Tue, 25 Nov 2008 17:42:27 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Anthony Liguori wrote:
> Thiemo Seufer wrote:
>> It shouldn't try to compile, for the sake of cross portability. Rather
>> something like
>>
>> gcc -E -dM -xc /dev/null |grep __linux__
>>
>> This checks if the compiler in use is a Linux compiler.
>>   
>
> Good enough, but I wonder why you think it shouldn't compile for the  
> sake of cross portability?
>
> The cross compiler should be able to create an executable.  You don't  
> have to run it, you just have to rely on #error causing compilation to 
> fail.

You are right, disregard my comment on that. :-)


Thiemo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]