Is it possible to set the __packed by using pragma?

Hello
Now I'm using MDK 3.5. The origin code didn't use __packed keyword in the definition of structure. To not to change the code, I want to use the #pragma __packed in the beginning of the code. Is it right if I do so?
Thanks

More questions in this forum