[Radiance-dev] Small changes to support native Windows compilation.

R Fritz rfritz at u.washington.edu
Tue Nov 11 12:29:43 PST 2008


The following two diffs make the last version of Radiance I downloaded  
compile natively with Visual Studio 2005. I hope they're appropriate  
for inclusion in the source.

===================================================================
--- ezxml.c	(.../trunk/src/gen/ezxml.c)	(revision 2)
+++ ezxml.c	(.../branches/radx/src/gen/ezxml.c)	(working copy)
@@ -30,9 +30,11 @@
  #include <stdarg.h>
  #include <string.h>
  #include <ctype.h>
-#include <unistd.h>
  #include <sys/types.h>
  #ifndef EZXML_NOMMAP
+/* This placement of unistd.h allows ezxml.c to compile natively on
+   MS-Windows */
+#include <unistd.h>
  #include <sys/mman.h>
  #endif // EZXML_NOMMAP
  #include <sys/stat.h>
===================================================================
--- obj2mesh.c	(.../trunk/src/ot/obj2mesh.c)	(revision 2)
+++ obj2mesh.c	(.../branches/radx/src/ot/obj2mesh.c)	(working copy)
@@ -5,6 +5,7 @@
   *  Main program to compile a Wavefront .OBJ file into a Radiance mesh
   */

+#include "paths.h"
  #include "copyright.h"
  #include "platform.h"
  #include "standard.h"


Randolph




More information about the Radiance-dev mailing list