On 4/16/10 12:31 AM, Douglas Gregor wrote: > Modified: cfe/trunk/lib/Frontend/InitPreprocessor.cpp > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/InitPreprocessor.cpp?rev=101450&r1=101449&r2=101450&view=diff > ============================================================================== > --- cfe/trunk/lib/Frontend/InitPreprocessor.cpp (original) > +++ cfe/trunk/lib/Frontend/InitPreprocessor.cpp Fri Apr 16 01:31:05 2010 > @@ -294,8 +294,30 @@ > // C++ translation unit. > Builder.defineMacro("__cplusplus", "199711L"); > Builder.defineMacro("__private_extern__", "extern"); > - // Ugly hack to work with GNU libstdc++. > - Builder.defineMacro("_GNU_SOURCE"); > + > + // Define _GNU_SOURCE on platforms where we expect to use glibc. > + switch (TI.getTriple().getOS()) { > + case llvm::Triple::Cygwin: > + case llvm::Triple::MinGW64: > + case llvm::Triple::MinGW32: I thought MinGW used "the native C runtime" (i.e. msvcrt) instead of glibc.
Chip _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
