Mercurial > mxe-octave
diff src/build-msvctools/cc-msvc.cc @ 3127:e0257da7fcdc
[MSVC] only use special math.h with clgcc and similar.
- cc-msvc.cc: define __CLGCC__ macro
- math/math.h.in: defaults to stock math.h if __CLGCC__ is not defined
- math/Makefile: add -D__CLGCC__ for files compiled with MSVC
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Thu, 11 Jul 2013 23:47:31 -0400 |
parents | 31edb6eea0eb |
children | b28756fd131c |
line wrap: on
line diff
--- a/src/build-msvctools/cc-msvc.cc Tue Jul 09 15:28:11 2013 -0400 +++ b/src/build-msvctools/cc-msvc.cc Thu Jul 11 23:47:31 2013 -0400 @@ -356,7 +356,7 @@ prog = "cl"; // Default target is WinXP SP3 - clopt = "-nologo -MD -DWIN32 -D_WIN32 -D__WIN32__ -DNTDDI_VERSION=0x05010300 -D_WIN32_WINNT=0x0501"; + clopt = "-nologo -MD -DWIN32 -D__CLGCC__ -D_WIN32 -D__WIN32__ -DNTDDI_VERSION=0x05010300 -D_WIN32_WINNT=0x0501"; linkopt = "-nologo"; cllinkopt = ""; sourcefile = "";