diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-03-19 14:11:27 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2010-09-03 10:56:46 (GMT) |
commit | 9b072cc5e91e45dbef4effabefc091461eccccc3 (patch) | |
tree | 21d6ba02dcf099105e0be6b7797c163a4a768554 | |
parent | 2770bbd1fc74eb5b2ea5761c25e8059945355edd (diff) | |
download | Qt-9b072cc5e91e45dbef4effabefc091461eccccc3.zip Qt-9b072cc5e91e45dbef4effabefc091461eccccc3.tar.gz Qt-9b072cc5e91e45dbef4effabefc091461eccccc3.tar.bz2 |
Add some constants for C++0x features
Reviewed-by: Olivier Goffart
Reviewed-by: Joao
-rw-r--r-- | src/corelib/global/qglobal.h | 19 |
1 files changed, 19 insertions, 0 deletions
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 |