lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Ip.h ...dhcp.h


From: Leon Woestenberg
Subject: Re: [lwip-users] Ip.h ...dhcp.h
Date: Wed, 19 Nov 2003 00:59:40 +0100

Hello Tom,

> Say, I'm noticing that I get a circular reference in using dhcp.
> 
> dhcp.h uses netif.h and netif.h uses dhcp.h ...
>
Hmmn. 
 
> My quick fix would be to move the dhcp struct to dhcps.h and 
> have both include this file. Any other ideas on actually removing
> the circular from the generic release?
> 
Yes,

use the following constructs in the header files:

#ifndef LWIP_DHCP_H
#define LWIP_DHCP_H

< file contents go here>

#endif /* LWIP_DHCP_H */

Same for LWIP_NETIF_H.

This fixes it in a generic manner.

I wonder where this bug got introduced :-)

Regards,

Leon.




reply via email to

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