add winrt detection

This commit is contained in:
John Sebastian Peterson 2015-03-09 09:35:16 +01:00
parent 94d6e06c97
commit 02cee0e96e
1 changed files with 8 additions and 0 deletions

View File

@ -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