diff --git a/hal/hal/emac_api.h b/hal/hal/emac_api.h index 9f1db4a1ec..bebd56f707 100644 --- a/hal/hal/emac_api.h +++ b/hal/hal/emac_api.h @@ -19,6 +19,7 @@ #include "platform.h" + #if DEVICE_EMAC #include @@ -154,5 +155,9 @@ typedef struct emac_interface { void *hw; } emac_interface_t; +#else + +typedef void *emac_interface_t; + #endif /* DEVICE_EMAC */ #endif /* MBED_EMAC_API_H */