several-files: replace some #include "arch/cc.h" by "lwip/arch.h", or simply remove it as long as "lwip/opt.h" is included before (this one include "lwip/debug.h" which already include "lwip/arch.h"). Like that, default defines are provided by "lwip/arch.h" if they are not defined in cc.h, in the same spirit than "lwip/opt.h" for lwipopts.h.

This commit is contained in:
fbernon 2007-09-06 16:43:43 +00:00
parent ca866c0d7d
commit ac1149156d
14 changed files with 13 additions and 15 deletions

View File

@ -373,6 +373,12 @@ HISTORY
++ Bug fixes:
2007-09-06 Frédéric Bernon
* several-files: replace some #include "arch/cc.h" by "lwip/arch.h", or simply remove
it as long as "lwip/opt.h" is included before (this one include "lwip/debug.h" which
already include "lwip/arch.h"). Like that, default defines are provided by "lwip/arch.h"
if they are not defined in cc.h, in the same spirit than "lwip/opt.h" for lwipopts.h.
2007-08-30 Frédéric Bernon
* igmp.h, igmp.c: Some changes to remove some redundant code, add some traces,
and fix some coding style.

View File

@ -35,10 +35,10 @@
* Author: Christiaan Simons <christiaan.simons@axon.tv>
*/
#include "arch/cc.h"
#include "lwip/opt.h"
#if LWIP_SNMP
#include "lwip/snmp.h"
#include "lwip/netif.h"
#include "netif/etharp.h"

View File

@ -35,8 +35,8 @@
#include "lwip/opt.h"
#if LWIP_SNMP
#include <string.h>
#include "arch/cc.h"
#include "lwip/ip_addr.h"
#include "lwip/mem.h"
#include "lwip/udp.h"

View File

@ -45,7 +45,7 @@
#include "lwip/opt.h"
#if LWIP_SNMP
#include "arch/cc.h"
#include "lwip/udp.h"
#include "lwip/netif.h"

View File

@ -32,7 +32,7 @@
#ifndef __LWIP_DEBUG_H__
#define __LWIP_DEBUG_H__
#include "arch/cc.h"
#include "lwip/arch.h"
/** lower two bits indicate debug level
* - 0 off

View File

@ -33,7 +33,7 @@
#define __LWIP_DEF_H__
/* this might define NULL already */
#include "arch/cc.h"
#include "lwip/arch.h"
#define LWIP_MAX(x , y) (((x) > (y)) ? (x) : (y))
#define LWIP_MIN(x , y) (((x) < (y)) ? (x) : (y))

View File

@ -34,8 +34,6 @@
#include "lwip/opt.h"
#include "arch/cc.h"
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -33,7 +33,7 @@
#ifndef __LWIP_PBUF_H__
#define __LWIP_PBUF_H__
#include "arch/cc.h"
#include "lwip/arch.h"
#include "lwip/err.h"
#ifdef __cplusplus

View File

@ -32,7 +32,7 @@
* It needs to be implemented by those platforms which need SLIP or PPP
*/
#include "arch/cc.h"
#include "lwip/arch.h"
#ifdef __cplusplus
extern "C" {

View File

@ -36,7 +36,6 @@
#define __LWIP_SNMP_ASN1_H__
#include "lwip/opt.h"
#include "arch/cc.h"
#include "lwip/err.h"
#include "lwip/pbuf.h"
#include "lwip/snmp.h"

View File

@ -36,7 +36,6 @@
#define __LWIP_SNMP_MSG_H__
#include "lwip/opt.h"
#include "arch/cc.h"
#include "lwip/snmp.h"
#include "lwip/snmp_structs.h"

View File

@ -40,7 +40,6 @@
#include "lwip/opt.h"
#if LWIP_SNMP
#include "arch/cc.h"
#include "lwip/snmp.h"
#if SNMP_PRIVATE_MIB

View File

@ -33,7 +33,6 @@
#define __LWIP_STATS_H__
#include "lwip/opt.h"
#include "arch/cc.h"
#include "lwip/mem.h"
#include "lwip/memp.h"

View File

@ -32,8 +32,6 @@
#ifndef __LWIP_SYS_H__
#define __LWIP_SYS_H__
#include "arch/cc.h"
#include "lwip/opt.h"
#ifdef __cplusplus