avr-libc-dev
[Top][All Lists]
Advanced

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

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


From: Bob Paddock
Subject: Re: [avr-libc-dev] twi.h move
Date: Thu, 17 Feb 2005 20:09:23 -0500
User-agent: KMail/1.7.2

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

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
#include <avr/ina90.h>
#endif

/* Test for GCC >= 3.4.3 */
#if __GCC_VERSION__ >= 30403
#include <compat/ina90.h>
#endif

#endif /* __GNUC__ */

-- 
                          http://www.softwaresafety.net/
 http://www.unusualresearch.com/ http://www.bpaddock.com/




reply via email to

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