push is a m$ thing, though I'm not sure what it is.
Thanks, Tyler Littlefield http://tysdomain.com ----- Original Message ----- From: Brett McCoy To: [email protected] Sent: Monday, January 05, 2009 5:22 PM Subject: Re: [c-prog] #pragma definition? 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 __________ NOD32 1869 (20061116) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com [Non-text portions of this message have been removed]
