diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-08-12 05:02:21 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-08-12 05:02:21 -0700 |
commit | dd419f3aac048176e4e760dc8f29d3429c4f07ce (patch) | |
tree | f3872f26445d699a778dea68349ef995a41b355f /include/ansidecl.h | |
parent | 995da1ffa716fb748cc6a664e81843e751270b45 (diff) | |
download | gdb-dd419f3aac048176e4e760dc8f29d3429c4f07ce.zip gdb-dd419f3aac048176e4e760dc8f29d3429c4f07ce.tar.gz gdb-dd419f3aac048176e4e760dc8f29d3429c4f07ce.tar.bz2 |
Sync ansidecl.h with GCC
Sync with GCC
2015-08-11 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* ansidecl.h (GCC_FINAL): New macro.
Diffstat (limited to 'include/ansidecl.h')
-rw-r--r-- | include/ansidecl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ansidecl.h b/include/ansidecl.h index 224627d..6e4bfc2 100644 --- a/include/ansidecl.h +++ b/include/ansidecl.h @@ -313,6 +313,15 @@ So instead we use the macro below and test it against specific values. */ #define ENUM_BITFIELD(TYPE) unsigned int #endif + /* This is used to mark a class or virtual function as final. */ +#if __cplusplus >= 201103L +#define GCC_FINAL final +#elif GCC_VERSION >= 4007 +#define GCC_FINAL __final +#else +#define GCC_FINAL +#endif + #ifdef __cplusplus } #endif |