Nuand / bladeRF

bladeRF USB 3.0 Superspeed Software Defined Radio Source Code
http://nuand.com
Other
1.15k stars 459 forks source link

libbladeRF portability issues #34

Closed jynik closed 11 years ago

jynik commented 11 years ago

The following items will need to be fixed/replaced for portability:

jynik commented 11 years ago

All of these items are solved in ^Bzzt^Ploink^'s changes...I'll be working on pulling these in. Please add any additional issues in the comments below.

Per the kind Mr. Ploink,

    #ifdef HAVE_DESIGNATED_INITIALIZERS
    #define SFINIT(f, ...) f = __VA_ARGS__
    #else
    #define SFINIT(f, ...) __VA_ARGS__
    #endif

    #define CLI_STATE_INITIALIZER { \
        SFINIT(.curr_device , NULL), \
        SFINIT(.last_lib_error , 0), \
        SFINIT(.last_error , 0), \
        SFINIT(.lineno , 0),\
    }
jynik commented 11 years ago

As of c28acaed838d14e61d08a548abd1883cd5ff470b, these items have been addressed.