mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
- Fix for the fix (suggested by cmake doyen)
svn path=/branches/cmake-bringup/; revision=50805
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user