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

R Fritz rfritz at u.washington.edu
Wed Nov 12 16:18:33 PST 2008


Great, thanks!

Randolph

On Nov 11, 2008, at 7:55 PM, Gregory J. Ward wrote:

> Just checked into HEAD -- thanks.
>
> -Greg
>
>> From: R Fritz <rfritz at u.washington.edu>
>> Date: November 11, 2008 12:29:43 PM PST
>>
>> 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
>
> _______________________________________________
> Radiance-dev mailing list
> Radiance-dev at radiance-online.org
> http://www.radiance-online.org/mailman/listinfo/radiance-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://radiance-online.org/pipermail/radiance-dev/attachments/20081112/66c9e033/attachment.html


More information about the Radiance-dev mailing list