提交 08816959 authored 作者: Jeff Lenk's avatar Jeff Lenk

simple compile fixes for windows

上级 3ac546fb
#include <switch.h>
#include "ws.h"
#include <pthread.h>
......
......@@ -26,6 +26,15 @@
#include <openssl/ssl.h>
#ifdef _MSC_VER
#define __bswap_64(x) \
x = (x>>56) | \
((x<<40) & 0x00FF000000000000) | \
((x<<24) & 0x0000FF0000000000) | \
((x<<8) & 0x000000FF00000000) | \
((x>>8) & 0x00000000FF000000) | \
((x>>24) & 0x0000000000FF0000) | \
((x>>40) & 0x000000000000FF00) | \
(x<<56)
#ifndef strncasecmp
#define strncasecmp _strnicmp
#endif
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论