Compiler.h: exclude clang from GCC_CHECK_VERSION()

This commit is contained in:
Max Kellermann
2014-11-28 19:33:09 +01:00
parent d93172bee8
commit 16a99ad515
2 changed files with 8 additions and 3 deletions

View File

@@ -111,7 +111,7 @@ AllocatedPath::ChopSeparators()
while (l >= 2 && PathTraitsFS::IsSeparator(p[l - 1])) {
--l;
#if GCC_CHECK_VERSION(4,7) && !defined(__clang__)
#if GCC_CHECK_VERSION(4,7)
value.pop_back();
#else
value.erase(value.end() - 1, value.end());