In cs_simplelink, check if MG_NET_IF is defined

PUBLISHED_FROM=20c87885c8f778139d3df20507d6870070bcc787
This commit is contained in:
Dmitry Frank authored and Cesanta Bot committed 2016-12-14 13:21:54 +00:00
1 parent 2fa988fc7b
commit 29c53082eb
1 file changed
+2 -1
+2 -1
View File
@@ -1088,7 +1088,8 @@ int gettimeofday(struct timeval *tp, void *tzp);
#define CS_COMMON_PLATFORMS_SIMPLELINK_CS_SIMPLELINK_H_
/* If simplelink.h is already included, all bets are off. */
#if MG_NET_IF == MG_NET_IF_SIMPLELINK && !defined(__SIMPLELINK_H__)
#if defined(MG_NET_IF) && MG_NET_IF == MG_NET_IF_SIMPLELINK && \
!defined(__SIMPLELINK_H__)
#include <stdbool.h>