- Fix for the fix (suggested by cmake doyen)

svn path=/branches/cmake-bringup/; revision=50805
This commit is contained in:
Johannes Anderwald 2011-02-18 15:09:22 +00:00
parent 35981f6794
commit c630ded4ea
2 changed files with 5 additions and 1 deletions

View file

@ -8,6 +8,10 @@ include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
if(MSVC)
add_definitions(-Disnan=_isnan)
endif()
spec2def(wined3.dll wined3d.spec)
list(APPEND SOURCE

View file

@ -43,7 +43,7 @@ static inline unsigned short float_32_to_16(const float *in)
/* Deal with special numbers */
if (*in == 0.0f) return 0x0000;
if(_isnan(*in)) return 0x7C01;
if(isnan(*in)) return 0x7C01;
if (isinf(*in)) return (*in < 0.0f ? 0xFC00 : 0x7c00);
if(tmp < powf(2, 10)) {