diff --git a/targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp b/targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp index d81e83164b..2fd89394c2 100644 --- a/targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp +++ b/targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp @@ -32,6 +32,12 @@ * Author: HongliangXU : hong-liang-xu@agilent.com */ +#ifdef USRP +/* USRP is both an enum in ettus library and a define for OAI */ +/* This removes the define for OAI */ +#undef USRP +#endif + #include #include #include