#include "target.h" less wildly
Don't include "target.h" from more headers than necessary. This avoids needless interdependencies and duplicated include paths. Don't needlessly include it in source files, either. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
@@ -62,7 +62,6 @@
|
||||
#include <stddef.h>
|
||||
#include "types.h"
|
||||
#include "flash.h"
|
||||
#include "target.h"
|
||||
#include "membuf.h"
|
||||
#include "at91sam3.h"
|
||||
#include "time_support.h"
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
#ifndef LPC3180_NAND_CONTROLLER_H
|
||||
#define LPC3180_NAND_CONTROLLER_H
|
||||
|
||||
#include "target.h"
|
||||
|
||||
enum lpc3180_selected_controller
|
||||
{
|
||||
LPC3180_NO_CONTROLLER,
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#endif
|
||||
|
||||
#include "mflash.h"
|
||||
#include "target.h"
|
||||
#include "time_support.h"
|
||||
#include "fileio.h"
|
||||
#include "log.h"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifndef _MFLASH_H
|
||||
#define _MFLASH_H
|
||||
|
||||
#include "target.h"
|
||||
struct command_context;
|
||||
|
||||
typedef unsigned long mg_io_uint32;
|
||||
typedef unsigned short mg_io_uint16;
|
||||
|
||||
Reference in New Issue
Block a user