From d6ec78a568567bce8af9a5957e7f958af21a8b48 Mon Sep 17 00:00:00 2001 From: Richard Barry Date: Mon, 22 Sep 2008 13:14:05 +0000 Subject: [PATCH] Added extra compiler specific options. --- Demo/Common/ethernet/lwIP_130/src/core/dns.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Demo/Common/ethernet/lwIP_130/src/core/dns.c b/Demo/Common/ethernet/lwIP_130/src/core/dns.c index 8c2cf0854..defd7e434 100644 --- a/Demo/Common/ethernet/lwIP_130/src/core/dns.c +++ b/Demo/Common/ethernet/lwIP_130/src/core/dns.c @@ -125,6 +125,9 @@ # include "arch/bpstruct.h" #endif PACK_STRUCT_BEGIN +#if (defined(__MWERKS__) || defined(__CWCC__)) + #pragma options align= packed +#endif /** DNS message header */ struct dns_hdr { u16_t id; @@ -144,6 +147,9 @@ PACK_STRUCT_END # include "arch/bpstruct.h" #endif PACK_STRUCT_BEGIN +#if (defined(__MWERKS__) || defined(__CWCC__)) + #pragma options align= packed +#endif /** DNS query message structure */ struct dns_query { /* DNS query record starts with either a domain name or a pointer @@ -160,6 +166,9 @@ PACK_STRUCT_END # include "arch/bpstruct.h" #endif PACK_STRUCT_BEGIN +#if (defined(__MWERKS__) || defined(__CWCC__)) + #pragma options align= packed +#endif /** DNS answer message structure */ struct dns_answer { /* DNS answer record starts with either a domain name or a pointer