[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] twi.h move

From: Matthias Ringwald
Subject: Re: [avr-libc-dev] twi.h move
Date: Fri, 18 Feb 2005 16:55:04 +0100

hi bob

is avr-libc hard bound to a specific avr-gcc version?
I would assume that I could use a newer (3.4.3) avr-gcc
with avr-libc 1.0.4 e.g.


On 18.02.2005, at 02:09, Bob Paddock wrote:

My builds are now failing since twi.h has been moved from include/avr to

I ran into that today as well.   I fixed my code as shown below.
My real question here tho, is there any equivalent way to do this
for the avr-libc versions?

#ifdef __GNUC__

#define __GCC_VERSION__ (__GNUC__ * 10000 \
                               + __GNUC_MINOR__ * 100 \
                               + __GNUC_PATCHLEVEL__)

/* Test for GCC < 3.4.3 */
#if __GCC_VERSION__ < 30403

reply via email to

[Prev in Thread] Current Thread [Next in Thread]