From 1322abd85eec848f25f935d0a31389e00a6dbbd4 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Mon, 22 Sep 2008 13:14:05 +0000 Subject: [PATCH] Added extra compiler specific options. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@475 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- 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 -- 2.39.2