2020-12-05 11:26:32 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#if MG_ARCH == MG_ARCH_UNIX
|
|
|
|
|
|
|
|
#define _DARWIN_UNLIMITED_SELECT 1
|
|
|
|
|
|
|
|
#include <arpa/inet.h>
|
|
|
|
#include <dirent.h>
|
2021-01-26 17:43:31 +00:00
|
|
|
#include <inttypes.h>
|
2020-12-05 11:26:32 +00:00
|
|
|
#include <netdb.h>
|
|
|
|
#include <netinet/tcp.h>
|
|
|
|
#include <signal.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <sys/select.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <sys/time.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#define MG_DIRSEP '/'
|
|
|
|
#define MG_ENABLE_POSIX 1
|
2021-01-26 17:43:31 +00:00
|
|
|
#define MG_INT64_FMT "%" PRId64
|
2020-12-05 11:26:32 +00:00
|
|
|
|
|
|
|
#endif
|