[llvm-bugs] [Bug 10478] undefined functions asprintf_l, snprintf_l

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jan 21 01:16:07 PST 2017


https://llvm.org/bugs/show_bug.cgi?id=10478

Eric Fiselier <eric at efcs.ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |eric at efcs.ca
         Resolution|---                         |INVALID

--- Comment #6 from Eric Fiselier <eric at efcs.ca> ---
The compiler is expected and required to predefine the libc feature macros
required by the C++ STL, and it does. On Unix systems _GNU_SOURCE is a builtin
macro when compiling C++, which enables essentially all libc extensions.

It sn unfortunately not compatible for users to restrict libc to anything less
than the default feature set.

Also there is no such thing as defining a libc feature macro "for the duration"
of some header. That's fundamentally not how headers work.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170121/70e8face/attachment.html>


More information about the llvm-bugs mailing list