<div dir="ltr">The important thing seems to be whether glibc implies linux, not the other way around. If glibc implies linux, then <div><br></div><div>#if defined(__linux__) || defined(__GLIBC__)</div><div><br></div><div>can be reduced to</div><div><br></div><div>#if defined(__linux__)</div><div><br></div><div>The issue is that all of our CMake decisions are based on OS platform. If I want to conditionally compile an entire file based on one of these conditions, I need to translate it into something that fits well into the CMake build.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 11, 2014 at 9:01 PM, Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@google.com" target="_blank">rnk@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Thu, Sep 11, 2014 at 7:07 PM, Zachary Turner <span dir="ltr"><<a href="mailto:zturner@google.com" target="_blank">zturner@google.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"><div dir="ltr">Thanks. In some places we check __GLIBC__ explicitly. I guess what I'm wondering is: is there some reason this isn't equivalent to some combination of OS define checks?</div></blockquote><div><br></div></span><div>You can use alternative libcs on Linux, like musl:</div><div><a href="http://www.musl-libc.org/" target="_blank">http://www.musl-libc.org/</a><br></div><div><br></div><div>Android, for example, uses a Linux kernel with the Bionic libc implementation, so it's complicated. =/</div></div></div></div>
</blockquote></div><br></div>