diff options
author | Josh Blum <josh@joshknows.com> | 2010-05-17 22:24:14 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-05-17 22:24:14 -0700 |
commit | 18f3f257145c4dcd981182221779550a7474488a (patch) | |
tree | e038011b289d65fbc23e2f07853d74a5dc6690e9 /host/include | |
parent | 101afd526de722b6d30381340a7ca8148aa9a6d7 (diff) | |
download | uhd-18f3f257145c4dcd981182221779550a7474488a.tar.gz uhd-18f3f257145c4dcd981182221779550a7474488a.tar.bz2 uhd-18f3f257145c4dcd981182221779550a7474488a.zip |
Created config macro to force inline.
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/config.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
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 */ |