X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbitcount.h;h=ad8df94ab078522066fdfa44da80c931fa732c88;hb=002062ae934c1fae3e56157e8e7e6451b552ada5;hp=2300bc96452cef857a819b7ab73b3ddbe8f2cf3e;hpb=4064ee540649cb46ad4cc4a6080bd4ef41314cb9;p=stockfish
diff --git a/src/bitcount.h b/src/bitcount.h
index 2300bc96..ad8df94a 100644
--- a/src/bitcount.h
+++ b/src/bitcount.h
@@ -18,7 +18,7 @@
along with this program. If not, see .
*/
-#if !defined(BITCOUNT_H_INCLUDED)
+#ifndef BITCOUNT_H_INCLUDED
#define BITCOUNT_H_INCLUDED
#include
@@ -81,7 +81,7 @@ inline int popcount(Bitboard b) {
template<>
inline int popcount(Bitboard b) {
-#if !defined(USE_POPCNT)
+#ifndef USE_POPCNT
assert(false);
return b != 0; // Avoid 'b not used' warning
@@ -102,4 +102,4 @@ inline int popcount(Bitboard b) {
#endif
}
-#endif // !defined(BITCOUNT_H_INCLUDED)
+#endif // #ifndef BITCOUNT_H_INCLUDED