Skip to content

Commit e6a70e4

Browse files
committed
Adding missing check for WINAPI_FAMILY.
1 parent 04860fc commit e6a70e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Release/include/cpprest/web_utilities.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class credentials
141141
details::plaintext_string decrypt() const
142142
{
143143
// Encryption APIs not supported on Windows Phone 8.0
144-
#if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP && _MSC_VER < 1800
144+
#if defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP && _MSC_VER < 1800
145145
return details::plaintext_string(new ::utility::string_t(m_password));
146146
#else
147147
return m_password.decrypt();

0 commit comments

Comments
 (0)