Fix warning caused by clang defining _GNUC_

This commit is contained in:
Gioacchino Mazzurco 2018-10-03 19:04:02 +02:00
parent f26a0c793e
commit e6e5700ed6
No known key found for this signature in database
GPG key ID: A1FBCA3872E87051
2 changed files with 12 additions and 4 deletions

View file

@ -21,7 +21,7 @@
*******************************************************************************/
#pragma once
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
# define GCC_VERSION (__GNUC__*10000+__GNUC_MINOR__*100+__GNUC_PATCHLEVEL__)
# if GCC_VERSION < 40700
# define override
@ -30,4 +30,4 @@
# if GCC_VERSION < 40600
# define nullptr NULL
# endif // GCC_VERSION < 40600
#endif //defined GNUC
#endif // defined(__GNUC__) && !defined(__clang__)