summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bfs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bfs.h b/src/bfs.h
index 6c930ad..32dbbae 100644
--- a/src/bfs.h
+++ b/src/bfs.h
@@ -221,9 +221,9 @@ extern const char bfs_ldlibs[];
/**
* Optimization hint to not unroll a loop.
*/
-#if __clang__
+#if BFS_HAS_PRAGMA_NOUNROLL
# define _nounroll _Pragma("nounroll")
-#elif __GNUC__
+#elif __GNUC__ && !__clang__
# define _nounroll _Pragma("GCC unroll 0")
#else
# define _nounroll