ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/rad.c
(Generate patch)

Comparing ray/src/util/rad.c (file contents):
Revision 2.123 by greg, Wed Oct 28 02:52:17 2015 UTC vs.
Revision 2.124 by schorsch, Sun Mar 6 01:13:18 2016 UTC

# Line 17 | Line 17 | static const char      RCSid[] = "$Id$";
17   #include "paths.h"
18   #include "vars.h"
19  
20 < #ifdef _WIN32
20 > #if defined(_WIN32) || defined(_WIN64)
21    #define DELCMD "del"
22    #define RENAMECMD "rename"
23   #else
# Line 1074 | Line 1074 | hiqopts(                               /* high quality rendering options */
1074   }
1075  
1076  
1077 < #ifdef _WIN32
1077 > #if defined(_WIN32) || defined(_WIN64)
1078   static void
1079   setenv(                 /* set an environment variable */
1080          char    *vname,
# Line 1121 | Line 1121 | xferopts(                              /* transfer options if indicated */
1121                          syserr(vval(OPTFILE));
1122                  sprintf(ro, " @%s", vval(OPTFILE));
1123          }
1124 < #ifdef _WIN32
1124 > #if defined(_WIN32) || defined(_WIN64)
1125          else if (n > 50) {
1126                  setenv("ROPT", ro+1);
1127                  strcpy(ro, " $ROPT");
# Line 1299 | Line 1299 | specview(                              /* get proper view spec from vs */
1299          if (cp == viewopts)             /* append any additional options */
1300                  vs++;           /* skip prefixed space if unneeded */
1301          strcpy(cp, vs);
1302 < #ifdef _WIN32
1302 > #if defined(_WIN32) || defined(_WIN64)
1303          if (strlen(viewopts) > 40) {
1304                  setenv("VIEW", viewopts);
1305                  return("$VIEW");
# Line 1367 | Line 1367 | myprintview(                   /* print out selected view */
1367          VIEW    vwr;
1368          char    buf[128];
1369          char    *cp;
1370 < #ifdef _WIN32
1370 > #if defined(_WIN32) || defined(_WIN64)
1371   /* XXX Should we allow something like this for all platforms? */
1372   /* XXX Or is it still required at all? */
1373   again:
1374   #endif
1375          if (vopts == NULL)
1376                  return(-1);
1377 < #ifdef _WIN32
1377 > #if defined(_WIN32) || defined(_WIN64)
1378          if (vopts[0] == '$') {
1379                  vopts = getenv(vopts+1);
1380                  goto again;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines