include of header with ifdef
<p>I've tried placing the following in my C++ code:  </p>

<pre><code>#ifdef _WIN32  
#include "stdafx.h"  
#endif  
</code></pre>

<p>but I getan error:</p>

<pre><code>PCH warning: header stop cannot be in a macro of #if block. An IntelliSense PCH file was not generated.  
</code></pre>

<p>I'm trying to let my code work both on windows and linux, stdafx.h does not work on linux where it's a must on visual studio.  </p>

<p>Is there another way to use the include with ifdef?</p>