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


_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to