[cfe-dev] math.h on Windows

Daniel Dunbar daniel at zuster.org
Fri Oct 23 09:10:55 PDT 2009


On Thu, Oct 15, 2009 at 5:23 PM, Douglas Gregor <dgregor at apple.com> wrote:
> > Also, could someone look at the enclosed patch for stdint.h?  This also
> > fixes some failing tests, since VC++ doesn't have stdint.h.  Who is point on
> > this?
>
> I'm not thrilled about using _M_IX86 and _M_X64 to detect what is really a
> library issue. I guess in the worst case we could have a configure-time
> check that determines whether we can #include_next <stdint.h>, but
> that's.... horrible.
> Unless someone has a better idea... ?

No configure-time check. :P

We could always invent a clang specific internal define for this,
which targets can set in their predefines. For example,
__STDC_INCLUDES_STDINT__ or so.

 - Daniel

> - Doug
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>




More information about the cfe-dev mailing list