This commit is contained in:
jzmaddock
2013-12-13 13:27:51 +00:00
parent 650c926c48
commit b0ed886eaa

View File

@ -558,7 +558,13 @@ namespace std{ using ::type_info; }
# define BOOST_NOINLINE __declspec(noinline) # define BOOST_NOINLINE __declspec(noinline)
# elif defined(__GNUC__) && __GNUC__ > 3 # elif defined(__GNUC__) && __GNUC__ > 3
// Clang also defines __GNUC__ (as 4) // Clang also defines __GNUC__ (as 4)
# define BOOST_NOINLINE __attribute__ ((__noinline__)) # if defined(__CUDACC__)
// nvcc doesn't always parse __noinline__,
// see: https://svn.boost.org/trac/boost/ticket/9392
# define BOOST_NOINLINE __attribute__ ((noinline))
# else
# define BOOST_NOINLINE __attribute__ ((__noinline__))
# endif
# else # else
# define BOOST_NOINLINE # define BOOST_NOINLINE
# endif # endif