From 02cee0e96ec14742d1a87adf2c9660982bfdb531 Mon Sep 17 00:00:00 2001 From: John Sebastian Peterson Date: Mon, 9 Mar 2015 09:35:16 +0100 Subject: [PATCH] add winrt detection --- include/libtorrent/config.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/libtorrent/config.hpp b/include/libtorrent/config.hpp index 825c4363c..78ec62660 100644 --- a/include/libtorrent/config.hpp +++ b/include/libtorrent/config.hpp @@ -275,6 +275,14 @@ POSSIBILITY OF SUCH DAMAGE. #define TORRENT_USE_PREADV 1 #define TORRENT_USE_PWRITEV 1 +// ==== WINRT === +#if defined(WINAPI_FAMILY_PARTITION) +# if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) \ + && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +# define TORRENT_WINRT +# endif +#endif + // ==== SOLARIS === #elif defined sun || defined __sun #define TORRENT_SOLARIS