In case both tcp_sockets_wrapper.h and FreeRTOS_Sockets.h are included in a file, a redefinition error of typedef Socket_t will be reported when using IAR toolchain.
Workaround
Here are 2 ways to fix this issue:
Refactor the code to not include both tcp_sockets_wrapper.h and FreeRTOS_Sockets.h in the same file.
Define SOCKET_T_TYPEDEFED in the source file before including tcp_sockets_wrapper.h. This will let the file tcp_sockets_wrapper.h know that Socket_t is already defined.
Issue
In case both tcp_sockets_wrapper.h and FreeRTOS_Sockets.h are included in a file, a redefinition error of typedef Socket_t will be reported when using IAR toolchain.
Workaround
Here are 2 ways to fix this issue: