diff --git a/lib/io.h b/lib/io.h index ba416dd5..81105e2d 100644 --- a/lib/io.h +++ b/lib/io.h @@ -30,7 +30,8 @@ extern "C" { * @{ */ -#ifdef __MICROBLAZE__ +#if defined(__MICROBLAZE__) || \ +(defined(__GNUC__) && !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8)) #define NO_ATOMIC_64_SUPPORT #endif