|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [5780] Native BSD host USB support (Juergen Lock, Lonnie Mendez) |
Date: | Tue, 25 Nov 2008 08:34:41 -0600 |
User-agent: | Thunderbird 2.0.0.17 (X11/20080925) |
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.
Regards, Anthony Liguori
Thiemo
[Prev in Thread] | Current Thread | [Next in Thread] |