diff --git a/features/netsocket/emac-drivers/TARGET_STM/stm32xx_emac.cpp b/features/netsocket/emac-drivers/TARGET_STM/stm32xx_emac.cpp index a9223610da..f575155de1 100644 --- a/features/netsocket/emac-drivers/TARGET_STM/stm32xx_emac.cpp +++ b/features/netsocket/emac-drivers/TARGET_STM/stm32xx_emac.cpp @@ -1,4 +1,5 @@ -/* Copyright (c) 2017 ARM Limited +/* Copyright (c) 2017-2019 ARM Limited + * Copyright (c) 2017-2019 STMicroelectronics * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -14,6 +15,8 @@ * limitations under the License. */ +#if DEVICE_EMAC + #include #include "cmsis_os.h" @@ -1035,3 +1038,5 @@ void HAL_ETH_MACErrorCallback(ETH_HandleTypeDef *heth) "Error from ethernet HAL (HAL_ETH_MACErrorCallback)\n"); } #endif // ETH_IP_VERSION_V2 + +#endif /* DEVICE_EMAC */