diff --git a/include/boost/config/compiler/gcc.hpp b/include/boost/config/compiler/gcc.hpp index b3e7b85f..4a87e217 100644 --- a/include/boost/config/compiler/gcc.hpp +++ b/include/boost/config/compiler/gcc.hpp @@ -16,7 +16,9 @@ // // Define BOOST_GCC so we know this is "real" GCC and not some pretender: // +#if !defined(__CUDACC__) #define BOOST_GCC (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) +#endif #if __GNUC__ < 3 # if __GNUC_MINOR__ == 91 @@ -154,7 +156,7 @@ // // Recent GCC versions have __int128 when in 64-bit mode: // -#if defined(__SIZEOF_INT128__) +#if defined(__SIZEOF_INT128__) && !defined(__CUDACC__) # define BOOST_HAS_INT128 #endif