Commit d3cf4ff5 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

d3dx9_36/tests: Fix compilation on systems that don't have NAN (Solaris).

parent 965d00f4
......@@ -26,6 +26,16 @@
#include "wine/test.h"
#include "d3dx9.h"
#ifndef NAN
/* From wine/port.h */
static inline float __port_nan(void)
{
static const unsigned __nan_bytes = 0x7fc00000;
return *(const float *)&__nan_bytes;
}
#define NAN __port_nan()
#endif
/* Set the WINETEST_DEBUG environment variable to be greater than 1 for verbose
* function call traces of ID3DXAllocateHierarchy callbacks. */
#define TRACECALLBACK if(winetest_debug > 1) trace
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment