Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Question: #pragma pack and GCC 2.95.3

0 views
Skip to first unread message

Marco Keuthen

unread,
Mar 13, 2002, 7:53:59 AM3/13/02
to
Hello,

I am converting a project from Windows (Visual C++) to linux.

the following warning occurs when I use the following pragmas:

#pragma pack (push, ...
#pragma pack (pop, ...

warning: malformed #pragma pack...


I thougt GCC can handle these pragma when I define:

#define HANDLE_PRAGMA_PACK_PUSH_POP


I know that I can declare the struct members packed when I use:
__attribute__((packed)) on each member.
But there a a lot of structs in the project :-))

Any ideas?


--
--------------------------------------------------------------------------
At the beginning there was the word -
and the word was content-type text/plain
--------------------------------------------------------------------------

0 new messages