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
--------------------------------------------------------------------------