diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-06-24 19:44:59 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-06-24 19:44:59 +0300 |
commit | db39fc5b247db1a1de751ba79b8ac1bda4a5c050 (patch) | |
tree | c8e83898641cb195b4ec92c188fee643de24b8cd /packages/net-p2p/retroshare/files/clang.patch | |
parent | 5ba21cc7b97be095e6c47262ec4536683534163f (diff) |
retrosahre-scm
Diffstat (limited to 'packages/net-p2p/retroshare/files/clang.patch')
-rw-r--r-- | packages/net-p2p/retroshare/files/clang.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/net-p2p/retroshare/files/clang.patch b/packages/net-p2p/retroshare/files/clang.patch new file mode 100644 index 0000000..56663c5 --- /dev/null +++ b/packages/net-p2p/retroshare/files/clang.patch @@ -0,0 +1,25 @@ +diff --git a/libretroshare/src/util/cxx11retrocompat.h b/libretroshare/src/util/cxx11retrocompat.h +index 587b1374d..2acf87995 100644 +--- a/libretroshare/src/util/cxx11retrocompat.h ++++ b/libretroshare/src/util/cxx11retrocompat.h +@@ -19,11 +19,13 @@ + + #ifdef __GNUC__ + # define GCC_VERSION (__GNUC__*10000+__GNUC_MINOR__*100+__GNUC_PATCHLEVEL__) +-# if GCC_VERSION < 40700 +-# define override +-# define final +-# endif // GCC version < 40700 +-# if GCC_VERSION < 40600 +-# define nullptr NULL +-# endif // GCC_VERSION < 40600 ++# ifndef __clang__ ++# if GCC_VERSION < 40700 ++# define override ++# define final ++# endif // GCC version < 40700 ++# if GCC_VERSION < 40600 ++# define nullptr NULL ++# endif // GCC_VERSION < 40600 ++# endif //__clang__ + #endif //defined GNUC |