<div dir="ltr">Hi,<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 13, 2013 at 10:49 AM, Evgeniy Stepanov <span dir="ltr"><<a href="mailto:eugeni.stepanov@gmail.com" target="_blank">eugeni.stepanov@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">A recent change added defined(__linux__) condition to the code below.<br>
Now it says that on linux with --std=c++0x (or --std=c++11) the system<br>
stdlib.h header must define aligned_alloc(). Really?<br>
<br>
include/__config:<br>
<br>
#if ( defined(__FreeBSD__) || defined(__linux__) ) && (__ISO_C_VISIBLE<br>
>= 2011 || __cplusplus >= 201103L)<br>
#define _LIBCPP_HAS_QUICK_EXIT<br>
#define _LIBCPP_HAS_C11_FEATURES<br>
#endif<br>
<br></blockquote><div><br></div><div>I added that line since libc on linux defines at_quick_exit.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
include/cstdlib:<br>
<br>
#include <__config><br>
#include <stdlib.h><br>
#ifdef _LIBCPP_HAS_C11_FEATURES<br>
using ::aligned_alloc;<br>
#endif</blockquote><div><br></div><div> And yes my stdlib.h has</div><div><br></div><div><div>/usr/include/stdlib.h:extern void *aligned_alloc (size_t __alignment, size_t __size)</div></div><div><br></div><div>I am guessing you are running on this on an old system. My glibc version is 2.17</div>
<div><br></div><div>Regards.</div><div><br></div></div></div></div>