From 18f3f257145c4dcd981182221779550a7474488a Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 17 May 2010 22:24:14 -0700 Subject: Created config macro to force inline. --- host/include/uhd/config.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'host/include') diff --git a/host/include/uhd/config.hpp b/host/include/uhd/config.hpp index 32eafc89b..fea95145c 100644 --- a/host/include/uhd/config.hpp +++ b/host/include/uhd/config.hpp @@ -76,4 +76,13 @@ #define UHD_LOCAL #endif // UHD_DLL +// Define force inline macro +#ifdef BOOST_MSVC + #define UHD_INLINE __forceinline +#elif defined(__GNUG__) && __GNUG__ >= 4 + #define UHD_INLINE inline __attribute__((always_inline)) +#else + #define UHD_INLINE inline +#endif + #endif /* INCLUDED_UHD_CONFIG_HPP */ -- cgit v1.2.3