From 9b072cc5e91e45dbef4effabefc091461eccccc3 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Fri, 19 Mar 2010 15:11:27 +0100 Subject: Add some constants for C++0x features Reviewed-by: Olivier Goffart Reviewed-by: Joao --- src/corelib/global/qglobal.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index ede6dcd..f9879cd 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -474,6 +474,25 @@ namespace QT_NAMESPACE {} # define QT_NO_ARM_EABI # endif # endif +# if defined(__GXX_EXPERIMENTAL_CXX0X__) +# if (__GNUC__ * 100 + __GNUC_MINOR__) >= 403 + /* C++0x features supported in GCC 4.3: */ +# define Q_COMPILER_RVALUE_REFS +# endif +# if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 + /* C++0x features supported in GCC 4.4: */ +# define Q_COMPILER_VARIADIC_TEMPLATES +# define Q_COMPILER_AUTO_TYPE +# define Q_COMPILER_EXTERN_TEMPLATES +# define Q_COMPILER_DEFAULT_DELETE_MEMBERS +# define Q_COMPILER_CLASS_ENUM +# endif +# if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 + /* C++0x features supported in GCC 4.5: */ +# define Q_COMPILER_LAMBDA +# define Q_COMPILER_UNICODE_STRINGS +# endif +# endif /* IBM compiler versions are a bit messy. There are actually two products: the C product, and the C++ product. The C++ compiler is always packaged -- cgit v0.12