/* * Copyright (c) 2014-2016 Cesanta Software Limited * All rights reserved */ #ifndef CS_COMMON_PLATFORMS_PLATFORM_ESP32_H_ #define CS_COMMON_PLATFORMS_PLATFORM_ESP32_H_ #if CS_PLATFORM == CS_P_ESP32 #include #include #include #include #include #include #include #include #include #include #include #define SIZE_T_FMT "u" typedef struct stat cs_stat_t; #define DIRSEP '/' #define to64(x) strtoll(x, NULL, 10) #define INT64_FMT PRId64 #define INT64_X_FMT PRIx64 #define __cdecl #define _FILE_OFFSET_BITS 32 #define MG_LWIP 1 #ifndef MG_NET_IF #define MG_NET_IF MG_NET_IF_SOCKET #endif #ifndef CS_ENABLE_STDIO #define CS_ENABLE_STDIO 1 #endif #endif /* CS_PLATFORM == CS_P_ESP32 */ #endif /* CS_COMMON_PLATFORMS_PLATFORM_ESP32_H_ */