title: Can Visual Studio 2010 ignore specific pragmas?
body: <p>I have literally hundreds of C++ source files used by many projects. They were written quite a while back, and they are all wrapped in packing pragmas:</p>
  <pre><code>#pragma pack(push, 1)
  /* Code here ... */
  #pragma pack(pop)
  </code></pre>
  <p>I have been put in charge of porting to x64. Amongst the many changes that need to be made, one is the requirement for a 16-byte aligned stack for Windows API calls. After some analysis of our system, we've determined that 1-byte structure alignment is <em>not necessary</em> and won't have any adverse affects on the system. <strong>I need to get rid of the 1-byte packing.</strong></p>
  <p>I know I can do a quick find/replace on all the files and just strip them out. This is an OK solution; <em>I'm perfectly happy to do this if it's the only way.</em> However, if I can <strong>avoid having to check in a revision which involves changes to literally hundreds of source files</strong>, and all the conflicts that might go with it, then that would be preferable.</p>
  <h1>Is there a way to get the Microsoft Compiler to ignore the #pragma pack?</h1>