From 2cd5bacca006fa8f957f1a230811b65a70655860 Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Fri, 19 Mar 2021 17:35:29 -0700 Subject: Refactor header structures in FPGA interchange Arch. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> --- common/nextpnr_namespaces.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/nextpnr_namespaces.h') diff --git a/common/nextpnr_namespaces.h b/common/nextpnr_namespaces.h index 8242376c..e6985ffe 100644 --- a/common/nextpnr_namespaces.h +++ b/common/nextpnr_namespaces.h @@ -38,16 +38,19 @@ #define NPNR_NORETURN __attribute__((noreturn)) #define NPNR_DEPRECATED __attribute__((deprecated)) #define NPNR_PACKED_STRUCT(...) __VA_ARGS__ __attribute__((packed)) +#define NPNR_ALWAYS_INLINE NPNR_ATTRIBUTE(__always_inline__) #elif defined(_MSC_VER) #define NPNR_ATTRIBUTE(...) #define NPNR_NORETURN __declspec(noreturn) #define NPNR_DEPRECATED __declspec(deprecated) #define NPNR_PACKED_STRUCT(...) __pragma(pack(push, 1)) __VA_ARGS__ __pragma(pack(pop)) +#define NPNR_ALWAYS_INLINE #else #define NPNR_ATTRIBUTE(...) #define NPNR_NORETURN #define NPNR_DEPRECATED #define NPNR_PACKED_STRUCT(...) __VA_ARGS__ +#define NPNR_ALWAYS_INLINE #endif #endif /* NEXTPNR_NAMESPACES_H */ -- cgit v1.2.3