[net][lwip] Support windows simulator (#5993)
This commit is contained in:
parent
e8d775f888
commit
577d619d4c
|
@ -8,6 +8,6 @@
|
||||||
* 2022-02-20 Meco Man add RT-Thread copyright
|
* 2022-02-20 Meco Man add RT-Thread copyright
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(__ICCARM__)
|
#if defined(__ICCARM__) || defined(_WIN32)
|
||||||
#pragma pack(1)
|
#pragma pack(1)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -100,6 +100,7 @@ typedef uintptr_t mem_ptr_t;
|
||||||
#define PACK_STRUCT_STRUCT
|
#define PACK_STRUCT_STRUCT
|
||||||
#define PACK_STRUCT_BEGIN
|
#define PACK_STRUCT_BEGIN
|
||||||
#define PACK_STRUCT_END
|
#define PACK_STRUCT_END
|
||||||
|
#define PACK_STRUCT_USE_INCLUDES
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void sys_arch_assert(const char* file, int line);
|
void sys_arch_assert(const char* file, int line);
|
||||||
|
|
|
@ -8,6 +8,6 @@
|
||||||
* 2022-02-20 Meco Man add RT-Thread copyright
|
* 2022-02-20 Meco Man add RT-Thread copyright
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(__ICCARM__)
|
#if defined(__ICCARM__) || defined(_WIN32)
|
||||||
#pragma pack()
|
#pragma pack()
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -475,7 +475,7 @@ static err_t eth_netif_device_init(struct netif *netif)
|
||||||
|
|
||||||
/* get device object */
|
/* get device object */
|
||||||
device = (rt_device_t) ethif;
|
device = (rt_device_t) ethif;
|
||||||
if (rt_device_init(device) != RT_EOK)
|
if (rt_device_open(device, RT_DEVICE_FLAG_RDWR) != RT_EOK)
|
||||||
{
|
{
|
||||||
return ERR_IF;
|
return ERR_IF;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue