summaryrefslogtreecommitdiff
path: root/digital/avr/common/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'digital/avr/common/common.h')
-rw-r--r--digital/avr/common/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/digital/avr/common/common.h b/digital/avr/common/common.h
index 1097942b..ac4c6dd0 100644
--- a/digital/avr/common/common.h
+++ b/digital/avr/common/common.h
@@ -50,7 +50,7 @@ typedef int32_t i32;
/* Should use __assert instead of __assert_fail if not using GCC. This is
* left as an exercise to the reader :). */
-# if __GNUC_PREREQ (3, 0)
+# if __GNUC__ >= 3
# define assert_print(expr, msg) \
(__ASSERT_VOID_CAST (__builtin_expect (!!(expr), 1) ? 0 : \
(__assert_fail (msg, __FILE__, __LINE__, \