From 231effa3b09a5a41c8d43878cbe96d77aaa9497e Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Thu, 4 Apr 2013 19:35:57 -0500 Subject: [PATCH] windows correct srtp --- libs/srtp/crypto/include/datatypes.h | 14 +- libs/srtp/libsrtp.2012.vcxproj.filters | 200 +++++++++++++++++++++++++ 2 files changed, 205 insertions(+), 9 deletions(-) create mode 100644 libs/srtp/libsrtp.2012.vcxproj.filters diff --git a/libs/srtp/crypto/include/datatypes.h b/libs/srtp/crypto/include/datatypes.h index e16d895bb5..34634e318b 100644 --- a/libs/srtp/crypto/include/datatypes.h +++ b/libs/srtp/crypto/include/datatypes.h @@ -409,16 +409,12 @@ static inline uint32_t be32_to_cpu(uint32_t v) { # define be32_to_cpu(x) ntohl((x)) # endif /* HAVE_X86 */ -static inline uint64_t be64_to_cpu(uint64_t v) { -# ifdef NO_64BIT_MATH - /* use the make64 functions to do 64-bit math */ - v = make64(htonl(low32(v)),htonl(high32(v))); -# else - /* use the native 64-bit math */ - v= (uint64_t)((be32_to_cpu((uint32_t)(v >> 32))) | (((uint64_t)be32_to_cpu((uint32_t)v)) << 32)); +# ifdef NO_64BIT_MATH + /* use the make64 functions to do 64-bit math */ +# define be64_to_cpu(v) (make64(htonl(low32(v)),htonl(high32(v)))) +# else +# define be64_to_cpu(v) ((ntohl((uint32_t)(v >> 32))) | (((uint64_t)ntohl((uint32_t)v)) << 32)) # endif - return v; -} #endif /* ! SRTP_KERNEL_LINUX */ diff --git a/libs/srtp/libsrtp.2012.vcxproj.filters b/libs/srtp/libsrtp.2012.vcxproj.filters new file mode 100644 index 0000000000..80b52717d3 --- /dev/null +++ b/libs/srtp/libsrtp.2012.vcxproj.filters @@ -0,0 +1,200 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {7633dd78-47bb-43bb-9ba1-4ab7d89873d1} + + + {532f3250-40ff-4a34-a071-f7bccfde71e2} + + + {8343a503-59a3-4af7-bed6-6d6439001561} + + + {dfda6cc2-cf2f-4b3d-ad48-6bfe332ec0c1} + + + {67144ed7-fb0e-4c22-96a4-1be71053e80f} + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav + + + + + Source Files + + + Source Files\Kernel + + + Source Files\Kernel + + + Source Files\Kernel + + + Source Files\Kernel + + + Source Files\Kernel + + + Source Files\Kernel + + + Source Files\Kernel + + + Source Files\Ciphers + + + Source Files\Ciphers + + + Source Files\Ciphers + + + Source Files\Ciphers + + + Source Files\Ciphers + + + Source Files\Hashes + + + Source Files\Hashes + + + Source Files\Hashes + + + Source Files\Hashes + + + Source Files\Replay + + + Source Files\Replay + + + Source Files\Replay + + + Source Files\Math + + + Source Files\Math + + + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + + + Source Files + + + \ No newline at end of file