2021-05-29 01:30:42 +08:00
|
|
|
// Required by the test ARM build
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <errno.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <sys/time.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
int clock_gettime(clockid_t clock_id, struct timespec *tp);
|
|
|
|
|
|
|
|
#define MG_DIRSEP '/'
|
|
|
|
#define MG_INT64_FMT "%lld"
|
2021-07-24 03:48:48 +08:00
|
|
|
#undef MG_PATH_MAX
|
2021-05-29 01:30:42 +08:00
|
|
|
#define MG_PATH_MAX 100
|
2021-07-24 03:48:48 +08:00
|
|
|
#undef MG_ENABLE_SOCKET
|
2021-05-29 01:30:42 +08:00
|
|
|
#define MG_ENABLE_SOCKET 0
|