title: Use of #elif in mingw
body: <p>I am currently porting some code from Visual studio to mingw and apparently the following code seems to work in Visual Studio but fails in Mingw</p>
  
  <pre><code>#if defined(BATCH_TRIANGLESTRIP)
  static const size_t VERT_COUNT = 4;
  #elif defined(BATCH_TRIANGLELIST)
  static const size_t VERT_COUNT = 6;
  #elif //error here on mingw
  #error BATCH_TRIANGLESTRIP or BATCH_TRIANGLELIST need to be defined
  #endif
  </code></pre>
  
  <p>My question is with the last <code>#elif</code> I looked over at the documentation of <a href="https://msdn.microsoft.com/en-us/library/ew2hz0yd.aspx" rel="nofollow">msdn</a> and apparently they dont have  a <code>#elif</code> statement without a condition. I wanted to know will the equivalent of above code in mingw be</p>
  
  <pre><code> #if defined(BATCH_TRIANGLESTRIP)
      static const size_t VERT_COUNT = 4; 
      #elif defined(BATCH_TRIANGLELIST)
      static const size_t VERT_COUNT = 6; 
      #else
      #error BATCH_TRIANGLESTRIP or BATCH_TRIANGLELIST need to be defined
      #endif
  </code></pre>
  
  <p>This is the error I get with the original code</p>
  
  <pre><code>error: #elif with no expression
  </code></pre>