QT中的宏定义
1、操作系统宏
//在<QtGlobal>中,定义了各个系统的宏定义 //Defined on AIX. #ifdef Q_OS_AIX // Defined on Android. #define Q_OS_ANDROID //Defined on Any BSD 4.4 system. #define Q_OS_BSD4 //Defined on BSD/OS. #define Q_OS_BSDI //Defined on Cygwin. #define Q_OS_CYGWIN //Defined on Darwin-based operating systems such as macOS, iOS, watchOS, and tvOS. #define Q_OS_DARWIN //Defined on DG/UX. #define Q_OS_DGUX //Defined on DYNIX/ptx. #define Q_OS_DYNIX //Defined on FreeBSD. #define Q_OS_FREEBSD //Defined on HP-UX. #define Q_OS_HPUX //Defined on GNU Hurd. #define Q_OS_HURD //Defined on iOS. #define Q_OS_IOS //Defined on SGI Irix. #define Q_OS_IRIX //Defined on Linux. #define Q_OS_LINUX //Defined on LynxOS. #define Q_OS_LYNX //Deprecated synonym for Q_OS_DARWIN. Do not use. #define Q_OS_MAC //Defined on macOS. #define Q_OS_MACOS //Defined on NetBSD. #define Q_OS_NETBSD //Defined on OpenBSD. #define Q_OS_OPENBSD //Defined on HP Tru64 UNIX. #define Q_OS_OSF //Deprecated synonym for Q_OS_MACOS. Do not use. #define Q_OS_OSX //Defined on QNX Neutrino. #define Q_OS_QNX //Defined on Reliant UNIX. #define Q_OS_RELIANT //Defined on SCO OpenServer 5. #define Q_OS_SCO //Defined on Sun Solaris. #define Q_OS_SOLARIS //Defined on tvOS. #define Q_OS_TVOS //Defined on DEC Ultrix. #define Q_OS_ULTRIX //Defined on Any UNIX BSD/SYSV system. #define Q_OS_UNIX //Defined on UnixWare 7, Open UNIX 8. #define Q_OS_UNIXWARE //Defined on watchOS. #define Q_OS_WATCHOS //Defined on 32-bit and 64-bit versions of Windows. #define Q_OS_WIN32 //Defined on 64-bit versions of Windows. #define Q_OS_WIN64 //Defined on all supported versions of Windows. That is, if Q_OS_WIN32, Q_OS_WIN64, or Q_OS_WINRT is defined. #define Q_OS_WIN //Defined on Windows Phone 8. #define Q_OS_WINPHONE //Defined for Windows Runtime (Windows Store apps) on Windows 8, Windows RT, and Windows Phone 8. #define Q_OS_WINRT
作者:耑新新,发布于 博客园
转载请注明出处,欢迎邮件交流:zhuanxinxin@aliyun.com
本文来自博客园,作者:Arthurian,转载请注明原文链接:https://www.cnblogs.com/Arthurian/p/14548136.html
欢迎邮件交流:zhuanxinxin@aliyun.com