[Top][All Lists]

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

[avr-libc-dev] [bug #26876] include io.h into fuse.h

From: Jan Waclawek
Subject: [avr-libc-dev] [bug #26876] include io.h into fuse.h
Date: Wed, 24 Jun 2009 13:41:32 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/2009042316 Firefox/3.0.10


                 Summary: include io.h into fuse.h
                 Project: AVR C Runtime Library
            Submitted by: wek
            Submitted on: Wed 24 Jun 2009 01:41:31 PM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Header files
                  Status: None
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.6.1
           Fixed Release: None



In <avr/fuse.h>, the __fuse_t struct is defined conditionally based on value
of FUSE_MEMORY_SIZE symbol being 1, 2, 3 or above. This symbol is defined by
#including <avr/io.h>. However, if fuse.h is #included *before* io.h, this
symbol is undefined, which may lead to an error confusing for the user,
typically at the place where the FUSES macro is used.

The fix is trivial - #including <avr/io.h> in fuse.h; but to help this fix to
be accepted, I *did* provide a patch... ;-)

Jan Waclawek


File Attachments:

Date: Wed 24 Jun 2009 01:41:31 PM GMT  Name: fuse.h.patch  Size: 179B   By:



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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