mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 20:50:41 +00:00
FS-8578: [mod_verto] fix build error for missing __bswap_64 on osx
This commit is contained in:
parent
1eec06bd85
commit
5ab62d8114
@ -25,7 +25,7 @@
|
|||||||
//#include "sha1.h"
|
//#include "sha1.h"
|
||||||
#include <openssl/ssl.h>
|
#include <openssl/ssl.h>
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#if defined(_MSC_VER) || defined(__APPLE__)
|
||||||
#define __bswap_64(x) \
|
#define __bswap_64(x) \
|
||||||
x = (x>>56) | \
|
x = (x>>56) | \
|
||||||
((x<<40) & 0x00FF000000000000) | \
|
((x<<40) & 0x00FF000000000000) | \
|
||||||
@ -35,6 +35,8 @@
|
|||||||
((x>>24) & 0x0000000000FF0000) | \
|
((x>>24) & 0x0000000000FF0000) | \
|
||||||
((x>>40) & 0x000000000000FF00) | \
|
((x>>40) & 0x000000000000FF00) | \
|
||||||
(x<<56)
|
(x<<56)
|
||||||
|
#endif
|
||||||
|
#ifdef _MSC_VER
|
||||||
#ifndef strncasecmp
|
#ifndef strncasecmp
|
||||||
#define strncasecmp _strnicmp
|
#define strncasecmp _strnicmp
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user