Mail Archives: djgpp/1998/09/07/04:12:02
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.
- Raw text -