[WIFI: WicedInterface] Add NSAPI_PRESENT macro

pull/13158/head
toyowata 2020-06-19 14:28:45 +09:00
parent 32a032bbf0
commit 7ad0174815
2 changed files with 8 additions and 0 deletions

View File

@ -17,6 +17,8 @@
#ifndef WICED_INTERFACE_H
#define WICED_INTERFACE_H
#if defined(MBED_CONF_NSAPI_PRESENT)
#include "mbed.h"
#include "EthernetInterface.h"
#include "netsocket/OnboardNetworkStack.h"
@ -111,3 +113,5 @@ private:
};
#endif
#endif

View File

@ -15,6 +15,8 @@
* limitations under the License.
*/
#if defined(MBED_CONF_NSAPI_PRESENT)
#include "WicedInterface.h"
WiFiInterface *WiFiInterface::get_target_default_instance()
@ -22,3 +24,5 @@ WiFiInterface *WiFiInterface::get_target_default_instance()
static WicedInterface wifi;
return &wifi;
}
#endif