aboutsummaryrefslogtreecommitdiffstats
path: root/common/bits.h
diff options
context:
space:
mode:
authorKeith Rothman <537074+litghost@users.noreply.github.com>2021-03-15 10:25:46 -0700
committergatecat <gatecat@ds0.me>2021-03-15 18:49:12 +0000
commit351ca3b5eac472b4bd08b11a4aa6fb67e545eda3 (patch)
tree25817e9ea10d339bf4c127b0a082cc5ac9a51deb /common/bits.h
parenta8e35062c6a1a21838346dd7536bb2fcc7f820ed (diff)
downloadnextpnr-351ca3b5eac472b4bd08b11a4aa6fb67e545eda3.tar.gz
nextpnr-351ca3b5eac472b4bd08b11a4aa6fb67e545eda3.tar.bz2
nextpnr-351ca3b5eac472b4bd08b11a4aa6fb67e545eda3.zip
Use NEXTPNR_NAMESPACE macro's now that headers are seperated.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
Diffstat (limited to 'common/bits.h')
-rw-r--r--common/bits.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/bits.h b/common/bits.h
index d1598a8e..1d6bb8be 100644
--- a/common/bits.h
+++ b/common/bits.h
@@ -37,9 +37,9 @@
#pragma intrinsic(_BitScanForward, _BitScanReverse, __popcnt)
#endif
-// Uses plain nextpnr namespace to avoid header inclusion nightmare that is
-// "nextpnr.h".
-namespace nextpnr {
+#include "nextpnr_namespaces.h"
+
+NEXTPNR_NAMESPACE_BEGIN
struct Bits
{
@@ -71,6 +71,6 @@ struct Bits
}
};
-}; // namespace nextpnr
+NEXTPNR_NAMESPACE_END
#endif /* BITS_H */