On Mon, Jan 5, 2009 at 7:07 PM, Jos Timanta Tarigan
<[email protected]> wrote:

> i notice this line:
>
> #pragma pack(push,1)
> struct TGAHeader {
>
> bla bla bla...
>
> };
> #pragma pack(pop)
>
> what is the definition of pragma exatly? i use this struct as a header that 
> will be written in a file. when i delete this line, the file can not be 
> opened by the application (corrupted). can any1 help me?
> *googled but not understand :(

#pragma is a directive for implementation specific information for the
compiler. What compiler and what platform are you doing this on?

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to