Added #undefs for htonl and friends to keep compiler from issuing "doubly defined" warnings

This commit is contained in:
adamdunkels 2002-10-23 20:00:21 +00:00
parent 814f8c505e
commit 43c6a550b2

View File

@ -5,6 +5,18 @@
#include "lwip/sys.h" #include "lwip/sys.h"
#include "lwip/arch.h" #include "lwip/arch.h"
/* Following #undefs are here to keep compiler from issuing warnings
about them being double defined. (They are defined in lwip/inet.h
as well as the Unix #includes below.) */
#undef htonl
#undef ntohl
#undef htons
#undef ntohs
#undef HTONL
#undef NTOHL
#undef HTONS
#undef NTOHS
#include <stdlib.h> #include <stdlib.h>
#include <termios.h> #include <termios.h>
#include <stdio.h> #include <stdio.h>