Compiler.h: add macro CLANG_OR_GCC_VERSION()

This commit is contained in:
Max Kellermann
2014-11-28 19:09:21 +01:00
parent 25429af122
commit d93172bee8
10 changed files with 23 additions and 16 deletions

View File

@@ -216,7 +216,7 @@ SmbclientNeighborExplorer::Run()
prev = i;
} else {
/* can't see it anymore: move to "lost" */
#if defined(__clang__) || GCC_CHECK_VERSION(4,7)
#if CLANG_OR_GCC_VERSION(4,7)
lost.splice_after(lost.before_begin(), list, prev);
#else
/* the forward_list::splice_after() lvalue