discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Compiler preprocessor defines


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] Compiler preprocessor defines
Date: Mon, 3 Nov 2008 13:21:42 -0800
User-agent: Mutt/1.5.18 (2008-05-17)

On Mon, Nov 03, 2008 at 03:46:56PM -0500, Ed Criscuolo wrote:
> Eric Blossom wrote:
>> On Mon, Nov 03, 2008 at 02:16:10PM -0500, Ed Criscuolo wrote:
>>> Is there any preprocessor define (or defines) that can be used
>>> when compiling C++ GnuRadio code to differentiate between
>>> different OSs?  I've looked through config.h but didn't see
>>> anything obvious.  I need to compile two different pieces
>>> of code for OSX vs LINUX.
>>>
>>
>> FWIW, the "autoconf way" is to test for features, not OS's.
>> In any event, if you look through config/*.m4 directory you'll find
>> all sorts of examples.
>>
>> See also the autoconf manual.
>>
>> What are you trying to conditionalize?
>>
>
> The tun/tap pseudo device is implemented very differently
> on OSX vs LINUX, UNIX, et al.

OK.

Take a look at how we handle the "Fast USB" technique selection.
See config/usrp_fusb_tech.m4.

It would probably be a good idea to abstract the whole "open the
tap/tun device" operation into a separate function, then swig it up so
that it's accessible from python.

Eric




reply via email to

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