wined3d: Fix compilation on systems that don't define INFINITY or NAN.
Francois Gouget
fgouget at free.fr
Thu Oct 3 09:03:17 CDT 2013
---
This fixes the compilation on Solaris. Note that cs.c was the only file
not including wine/port.h before wined3d_private.h.
Because INFINITY and NAN are used in wined3d_private.h itself I don't
think it's possible to use that header without including wine/port.h. So
it may make sense to move the config.h and wine/port.h include
directives inside wined3d_private.h (where there are already quite a few
others), but this may mess up our checks that config.h must be included
first.
I could resubmit a patch going that way though.
dlls/wined3d/cs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/wined3d/cs.c b/dlls/wined3d/cs.c
index 6919e91..6db506f 100644
--- a/dlls/wined3d/cs.c
+++ b/dlls/wined3d/cs.c
@@ -17,6 +17,7 @@
*/
#include "config.h"
+#include "wine/port.h"
#include "wined3d_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(d3d);
--
1.8.4.rc3
More information about the wine-patches
mailing list