mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-17 11:05:03 +02:00
compiler detection macros
This commit is contained in:
@@ -211,6 +211,37 @@
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#define POCO_COMPILER_MSVC
|
||||
#elif defined(__clang__)
|
||||
#define POCO_COMPILER_CLANG
|
||||
#elif defined (__GNUC__)
|
||||
#define POCO_COMPILER_GCC
|
||||
#elif defined (__MINGW32__) || defined (__MINGW64__)
|
||||
#define POCO_COMPILER_MINGW
|
||||
#elif defined (__INTEL_COMPILER) || defined(__ICC) || defined(__ECC) || defined(__ICL)
|
||||
#define POCO_COMPILER_INTEL
|
||||
#elif defined (__SUNPRO_CC)
|
||||
#define POCO_COMPILER_SUN
|
||||
#elif defined (__MWERKS__) || defined(__CWCC__)
|
||||
#define POCO_COMPILER_CODEWARRIOR
|
||||
#elif defined (__sgi) || defined(sgi)
|
||||
#define POCO_COMPILER_SGI
|
||||
#elif defined (__HP_aCC)
|
||||
#define POCO_COMPILER_HP_ACC
|
||||
#elif defined (__BORLANDC__) || defined(__CODEGEARC__)
|
||||
#define POCO_COMPILER_CBUILDER
|
||||
#elif defined (__DMC__)
|
||||
#define POCO_COMPILER_DMARS
|
||||
#elif defined (__HP_aCC)
|
||||
#define POCO_COMPILER_HP_ACC
|
||||
#elif (defined (__xlc__) || defined (__xlC__)) && defined(__IBMCPP__)
|
||||
#define POCO_COMPILER_IBM_XLC // IBM XL C++
|
||||
#elif defined (__IBMCPP__) && defined(__COMPILER_VER__)
|
||||
#define POCO_COMPILER_IBM_XLC_ZOS // IBM z/OS C++
|
||||
#endif
|
||||
|
||||
|
||||
#if !defined(POCO_ARCH)
|
||||
#error "Unknown Hardware Architecture."
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user