mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 08:25:53 +00:00
- Fix for the fix (suggested by cmake doyen)
svn path=/branches/cmake-bringup/; revision=50805
This commit is contained in:
parent
35981f6794
commit
c630ded4ea
|
@ -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
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue