mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-30 12:50:58 +00:00
Add inet_ntop and inet_pton to esp8266
PUBLISHED_FROM=0a321ace3753a518e299b795fb7a4eed19708bb6
This commit is contained in:
1 parent
4e11d5cdbf
commit
04aeeba2fa
1 file changed
+6
@@ -591,6 +591,12 @@ typedef struct stat cs_stat_t;
|
|||||||
#define CS_ENABLE_STDIO 1
|
#define CS_ENABLE_STDIO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define inet_ntop(af, src, dst, size) \
|
||||||
|
(((af) == AF_INET) ? ipaddr_ntoa_r((const ip_addr_t *) (src), (dst), (size)) \
|
||||||
|
: NULL)
|
||||||
|
#define inet_pton(af, src, dst) \
|
||||||
|
(((af) == AF_INET) ? ipaddr_aton((src), (ip_addr_t *) (dst)) : 0)
|
||||||
|
|
||||||
#endif /* CS_PLATFORM == CS_P_ESP8266 */
|
#endif /* CS_PLATFORM == CS_P_ESP8266 */
|
||||||
#endif /* CS_COMMON_PLATFORMS_PLATFORM_ESP8266_H_ */
|
#endif /* CS_COMMON_PLATFORMS_PLATFORM_ESP8266_H_ */
|
||||||
#ifdef MG_MODULE_LINES
|
#ifdef MG_MODULE_LINES
|
||||||
|
|||||||
Reference in new issue
Block a user