diff options
author | Marco Deckel <marco.deckel@gmail.com> | 2016-08-21 13:44:33 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-08-21 13:56:22 +0200 |
commit | 7f3df8040858bc604b4b7ec9e6e3544e7184c9ca (patch) | |
tree | d9d6ef48c4249a45807cce4556b3ff67f6be9375 /lib/curl_setup.h | |
parent | a78c61a4bf5b7eb90b0945d94568b7b3b1f23c6e (diff) | |
download | curl-7f3df8040858bc604b4b7ec9e6e3544e7184c9ca.tar.gz |
win: Basic support for Universal Windows Platform apps
Closes #820
Diffstat (limited to 'lib/curl_setup.h')
-rw-r--r-- | lib/curl_setup.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/curl_setup.h b/lib/curl_setup.h index e585ea6a5..9f29b2e9a 100644 --- a/lib/curl_setup.h +++ b/lib/curl_setup.h @@ -747,4 +747,14 @@ endings either CRLF or LF so 't' is appropriate. # endif #endif /* DONT_USE_RECV_BEFORE_SEND_WORKAROUNDS */ +/* Detect Windows App environment which has a restricted access + * to the Win32 APIs. */ +# if defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0602) +# include <winapifamily.h> +# if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && \ + !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +# define CURL_WINDOWS_APP +# endif +# endif + #endif /* HEADER_CURL_SETUP_H */ |