[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [RFC] Generate compiler warning if not included from avr/
From: |
Theodore A. Roth |
Subject: |
[avr-libc-dev] [RFC] Generate compiler warning if not included from avr/io.h |
Date: |
Mon, 23 Sep 2002 09:56:29 -0700 (PDT) |
Hi,
This patch adds a simple check to each ioXXX.h file to see if the file was
included directly or via avr/io.h.
The second check is to verify that one and only one ioXXX.h file has been
included. This catches the case where a user does something foolish as
such (assume -mmcu=at90s8515):
#include <avr/io.h>
#include <avr/iom128.h>
This is the first step in moving redundant code from ioXXX.h to io.h
Comments?
Ted Roth
avr-libc-ioXXX-protect.diff
Description: Text document
- [avr-libc-dev] [RFC] Generate compiler warning if not included from avr/io.h,
Theodore A. Roth <=