summaryrefslogtreecommitdiff
path: root/include/gnuradio/gras.hpp
diff options
context:
space:
mode:
authorJosh Blum2012-09-20 18:10:34 -0700
committerJosh Blum2012-09-20 18:10:34 -0700
commit70d6105c6a5356e2b5dadeae45751239c080cace (patch)
tree7cc4ac9c1ecf3cd83f9c686c533751596ec984ac /include/gnuradio/gras.hpp
parent6fed7c8bd373fcde314afeac8e0b110b642c31c6 (diff)
downloadsandhi-70d6105c6a5356e2b5dadeae45751239c080cace.tar.gz
sandhi-70d6105c6a5356e2b5dadeae45751239c080cace.tar.bz2
sandhi-70d6105c6a5356e2b5dadeae45751239c080cace.zip
fun with inlines
Diffstat (limited to 'include/gnuradio/gras.hpp')
-rw-r--r--include/gnuradio/gras.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/gnuradio/gras.hpp b/include/gnuradio/gras.hpp
index 1e0087a..3b7c651 100644
--- a/include/gnuradio/gras.hpp
+++ b/include/gnuradio/gras.hpp
@@ -27,6 +27,15 @@
#define GRAS_MAX_ALIGNMENT 32
+//define cross platform attribute macros
+#if defined(BOOST_MSVC)
+ #define GRAS_FORCE_INLINE __forceinline
+#elif defined(__GNUG__) && __GNUG__ >= 4
+ #define GRAS_FORCE_INLINE inline __attribute__((always_inline))
+#else
+ #define GRAS_FORCE_INLINE inline
+#endif
+
namespace gnuradio
{