mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-12 20:27:19 +00:00
simple compile fixes for windows
This commit is contained in:
parent
3ac546fbf1
commit
08816959aa
@ -1,3 +1,4 @@
|
|||||||
|
#include <switch.h>
|
||||||
#include "ws.h"
|
#include "ws.h"
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
|
@ -26,6 +26,15 @@
|
|||||||
#include <openssl/ssl.h>
|
#include <openssl/ssl.h>
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#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
|
#ifndef strncasecmp
|
||||||
#define strncasecmp _strnicmp
|
#define strncasecmp _strnicmp
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user