Boost C++ Libraries: Ticket #8731: __GLIBC_HAVE_LONG_LONG define has been dropped from glibc in 2.17 https://svn.boost.org/trac10/ticket/8731 <p> Boost uses this define to decide whether it can import ::uint64_t into the boost namespace. In glibc 2.17, that define has been dropped, support for long long is always assumed, and uint64_t is always defined. It is possible to use the macro GLIBC_PREREQ (defined I think since 2.2) to test glibc version. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8731 Trac 1.4.3 pmachata@… Tue, 25 Jun 2013 20:08:20 GMT <link>https://svn.boost.org/trac10/ticket/8731#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8731#comment:1</guid> <description> <p> Since Trac won't let me attach the patch (it finds URLs in there and thinks it's spam; captcha shows, but it doesn't upload anyway for some reason), please get it there: <a class="ext-link" href="http://pmachata.fedorapeople.org/boost-1.53.0-__GLIBC_HAVE_LONG_LONG.patch"><span class="icon">​</span>http://pmachata.fedorapeople.org/boost-1.53.0-__GLIBC_HAVE_LONG_LONG.patch</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Wed, 03 Jul 2013 16:50:16 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/8731#comment:2 https://svn.boost.org/trac10/ticket/8731#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">config</span> </li> </ul> Ticket John Maddock Thu, 04 Jul 2013 09:13:24 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/8731#comment:3 https://svn.boost.org/trac10/ticket/8731#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/84950" title="Patch for recent versions of glibc which always assume int64_t ...">[84950]</a>) Patch for recent versions of glibc which always assume int64_t support. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8731" title="#8731: Bugs: __GLIBC_HAVE_LONG_LONG define has been dropped from glibc in 2.17 (closed: fixed)">#8731</a>. </p> Ticket anonymous Thu, 04 Jul 2013 09:14:53 GMT <link>https://svn.boost.org/trac10/ticket/8731#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8731#comment:4</guid> <description> <p> Your patch didn't work for me - gcc-4.7 Mingw choked on the use of <code>__GLIBC_PREREQ</code>, changed to check for version numbers the old way. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 19 May 2014 23:59:36 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8731#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8731#comment:5</guid> <description> <p> The patch in <a class="ext-link" href="https://svn.boost.org/trac/boost/changeset/84950"><span class="icon">​</span>https://svn.boost.org/trac/boost/changeset/84950</a> will break when (if) glibc issues version 3.0. </p> <p> The following patch is preferred way to spell "glibc-2.17 or above": </p> <pre class="wiki">-#if defined(BOOST_HAS_STDINT_H) &amp;&amp; (!defined(__GLIBC__) || defined(__GLIBC_HAVE_LONG_LONG)) +#if defined(BOOST_HAS_STDINT_H) &amp;&amp; (!defined(__GLIBC__) \ + || defined(__GLIBC_HAVE_LONG_LONG) \ + || __GLIBC_PREREQ(2, 17)) </pre> </description> <category>Ticket</category> </item> </channel> </rss>