1 Star 1 Fork 0

wkk / uWebSockets

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.h 552 Bytes
一键复制 编辑 原始数据 按行查看 历史
uNetworkingAB 提交于 2022-11-02 15:11 . Update build.h
#define _CRT_SECURE_NO_WARNINGS
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
int env_is(char *env, char *target) {
char *val = getenv(env);
return val && !strcmp(val, target);
}
char *maybe(char *in) {
return in ? in : "";
}
char *or_else(char *in, char *otherwise) {
return in ? in : otherwise;
}
int run(const char *cmd, ...) {
char buf[2048];
va_list args;
va_start(args, cmd);
vsprintf(buf, cmd, args);
va_end(args);
printf("--> %s\n\n", buf);
return system(buf);
}
C++
1
https://gitee.com/wkk2013/uWebSockets.git
git@gitee.com:wkk2013/uWebSockets.git
wkk2013
uWebSockets
uWebSockets
master

搜索帮助