]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
simple compile fixes for windows
authorJeff Lenk <jeff@jefflenk.com>
Sun, 22 Nov 2015 21:38:12 +0000 (15:38 -0600)
committerJeff Lenk <jeff@jefflenk.com>
Sun, 22 Nov 2015 21:38:12 +0000 (15:38 -0600)
src/mod/endpoints/mod_verto/ws.c
src/mod/endpoints/mod_verto/ws.h

index cc362793466030f864117b2b15f344297f234087..0731ac6915dde61a3969c02fbd75197d2c778752 100644 (file)
@@ -1,3 +1,4 @@
+#include <switch.h>
 #include "ws.h"
 #include <pthread.h>
 
index c66f3f8cd854814baf7dc42db2a2d5d3abf512ce..66231db419f416a2df58aa5f06656a3c02546dd4 100644 (file)
 #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