Skip to content

Commit

Permalink
qsystemdetection.h: Check existence of define WINAPI_FAMILY_PHONE_APP.
Browse files Browse the repository at this point in the history
It is missing in MinGW and causes warnings like:
src/corelib/global/qsystemdetection.h:109:24: error: "WINAPI_FAMILY_PHONE_APP" is not defined [-Werror=undef]
in QtScript and headersclean failures in Active Qt.

Task-number: QTBUG-45666
Change-Id: I167d9d5b33faddfbbcf44bdcce5e86fb43614fa9
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
Friedemann Kleint authored and Friedemann Kleint committed Apr 22, 2015
1 parent 9ff5508 commit e0c83fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corelib/global/qsystemdetection.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
# if defined(WINCE) || defined(_WIN32_WCE)
# define Q_OS_WINCE
# elif defined(WINAPI_FAMILY)
# if WINAPI_FAMILY==WINAPI_FAMILY_PHONE_APP
# if defined(WINAPI_FAMILY_PHONE_APP) && WINAPI_FAMILY==WINAPI_FAMILY_PHONE_APP
# define Q_OS_WINPHONE
# define Q_OS_WINRT
# elif WINAPI_FAMILY==WINAPI_FAMILY_APP
Expand Down

0 comments on commit e0c83fb

Please sign in to comment.