Date: Mon, 7 Sep 1998 11:11:51 +0300 (IDT) From: Eli Zaretskii To: yonghlee cc: djgpp AT delorie DOT com Subject: Re: "word aligned structure" compiling option In-Reply-To: <_ZJI1.392$XU4.1621018@news.bora.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Mon, 7 Sep 1998, yonghlee wrote: > I want to know the gcc compiler option for word aligned structure > option The FAQ mentions in section 22.10 the #pragma pack directive (pack(2) will do what you seem to need), but it also requires source-level change. > And I don't want change my source code for target compatibility > as described in DJGPP FAQ list. Why not? What's wrong with something like this: #ifdef __DJGPP__ ... put here the DJGPP version ... #else .... put the Borland version here ... #endif You are in an area which is inherently non-portable, so some #ifdef'ing is unavoidable.