title: valloc identifier not found on Windows
body: <p>I have to modify a Mac code to make it work on Windows, or at least compile for now, but there seems to be a problem with valloc.</p>
  
  <p>It says : <code>error C3861: 'valloc': identifier not found.</code></p>
  
  <p>This is how it's used :</p>
  
  <pre><code>#ifndef _XOPEN_SOURCE_EXTENDED 1
  #define _XOPEN_SOURCE_EXTENDED 1
  #endif
  #include &lt;stdlib.h&gt;
  
  #include &lt;queue&gt;
  #include "ArrayArithmetic.h"
  #include "MessageObject.h"
  
  #if __SSE__
  // allocate memory aligned to 16-bytes memory boundary
  #define ALLOC_ALIGNED_BUFFER(_numBytes) (float *) _mm_malloc(_numBytes, 16)
  #define FREE_ALIGNED_BUFFER(_buffer) _mm_free(_buffer)
  #else
  // NOTE(mhroth): valloc seems to work well, but is deprecated!
  #define ALLOC_ALIGNED_BUFFER(_numBytes) (float *) valloc(_numBytes)
  #define FREE_ALIGNED_BUFFER(_buffer) free(_buffer)
  #endif
  </code></pre>
  
  <p>I have the good include, or at least I think so.
  No, I really don't see where it comes from, is <code>valloc</code> available on Windows?</p>
  
  <p>I work on windows 8.1 with Visual Studio 2010.</p>