mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-28 12:30:58 +00:00
Now src contains exactly what's embedded in mongoose.c and .h, nothing more. Added `tools/amalgam.sh` to aamlgamate both files at once. There are no functional changes to mongoose.c, .h in this PR, only slight filename changes.
34 lines
622 B
C
34 lines
622 B
C
|
|
#ifndef CS_COMMON_PLATFORMS_PLATFORM_PIC32_H_
|
|
#define CS_COMMON_PLATFORMS_PLATFORM_PIC32_H_
|
|
|
|
#if CS_PLATFORM == CS_P_PIC32
|
|
|
|
#define MG_NET_IF MG_NET_IF_PIC32
|
|
|
|
#include <stdint.h>
|
|
#include <time.h>
|
|
#include <ctype.h>
|
|
#include <stdlib.h>
|
|
|
|
#include <system_config.h>
|
|
#include <system_definitions.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
typedef TCP_SOCKET sock_t;
|
|
#define to64(x) strtoll(x, NULL, 10)
|
|
|
|
#define SIZE_T_FMT "lu"
|
|
#define INT64_FMT "lld"
|
|
|
|
#ifndef CS_ENABLE_STDIO
|
|
#define CS_ENABLE_STDIO 1
|
|
#endif
|
|
|
|
char *inet_ntoa(struct in_addr in);
|
|
|
|
#endif /* CS_PLATFORM == CS_P_PIC32 */
|
|
|
|
#endif /* CS_COMMON_PLATFORMS_PLATFORM_PIC32_H_ */
|