title: How to #define __forceinline inline?
body: <p>I have some Microsoft code (XLCALL.CPP) which I am trying to compile with CodeBlocks/MinGW.<br>
  At this line I get a compile time error:</p>
  
  <pre><code>__forceinline void FetchExcel12EntryPt(void)
  </code></pre>
  
  <p>This is the error message I get:</p>
  
  <blockquote>
    <p>XLCALL.CPP|36|error: expected constructor, destructor, or type
    conversion before 'void'</p>
  </blockquote>
  
  <p>This error is expected, because __forceinline is a Microsoft specific addition to the language, not recognized by GCC.</p>
  
  <p>So, to get things compile, I try to add thiese defines in CodeBlocks (Project Build Options/Compiler Settings/#defines):  </p>
  
  <pre><code>#define __forceinline inline
  #define __forceinline 
  </code></pre>
  
  <p>However I still get the same error.</p>
  
  <p>If in the dialog I do not specify the #define preprocessor command (i.e.: <code>__forceinline inline</code>), this is what I get:</p>
  
  <blockquote>
    <p>XLCALL.CPP|36|error: expected unqualified-id before numeric constant</p>
  </blockquote>
  
  <p>Is there a way to compile such a piece of code, <em>without using</em> Visual C++?</p>