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

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

[avr-libc-dev] Why include <ina90.h> from <avr/pgmspace.h>?


From: Joerg Wunsch
Subject: [avr-libc-dev] Why include <ina90.h> from <avr/pgmspace.h>?
Date: Sun, 6 Oct 2002 23:27:40 +0200
User-agent: Mutt/1.2.5i

IMHO, default headers should not include compatibility headers
anyway.  People who want compatibility for another compiler
should be required to include their compat header manually.

In the course of finally implementing a stdio suite (based on
Alexander Popov's submission of a printf implementation, can
already be found on a vendor branch in CVS), the inclusion of
ina90.h inside avr/pgmspace.h gets into my way.  It will in
turn include <avr/io.h> which cannot be done inside the
library since the library never gets compiled for a particular
actual device type, but always only for the pseudo-device
types avr2 through avr5.

Would anybody moan if i removed this line completely?  Otherwise,
i might encapsulate it into some #ifdef magic, but i feel that
to be ugly.
-- 
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/




reply via email to

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