Hi,

On Mon, Sep 21, 2009 at 20:08, Dominique Brazziel <dbrazz...@snet.net> wrote:
> For instance:
>
>  #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
>        struct video_device *dev = video_devdata(file);
> #endif
>        struct quickcam *qc = dev->priv;

> How can I tell the results of the preprocessor evaluation
> of 'LINUX_VERSION_CODE' to be sure?  I've run a whole

you can run gcc -E to see the preprocessor output, or you can just
create a C file with something like:

printf("%d %d\n", LINUX_VERSION_CODE, KERNEL_VERSION(2,6,0));

to see the actual numbers produced

> lot of makes in the last 24 hours and at this point
> I don't even care if this gets built because I see
> that the 'gspca_stv...' driver is getting loaded.
> I just want to understand why the version code is
> not being evaluated when I'm running 2.6.30 (on AMD64)
> and can see the version code in 'version.h' is correct:
>
>
> cat /usr/src/linux-headers-2.6.30-1-amd64/include/linux/version.h
> #define LINUX_VERSION_CODE 132638
> #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
>
>
>
>
>
>



-- 
Martín Ferrari



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to