
Yigal Hochberg wrote:
Juergen
The compile-time _MS_VER (or something like this), holds the cl release number. I think that it can be used for this.
#if _MS_VER < ms-cl-release#
I don't know which number to use. Anyone?
My compiler says:
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86
and the magic number is 1400.
In another mail you said:
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
So I suspect your magic number would be 1200
Hence the appropriate wrapper to go in lib\parser-sming.y (the only place it appears to be used) would be:
#ifdef _MS_VER #if _MS_VER <= 1200 #define strtof(f1,f2) ((float)strtod(f1,f2)) #endif #endif
FYI, it would appear to be C99, quoting from the strtof man page:
CONFORMING TO ANSI C describes strtod, C99 describes the other two func- tions.