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 |
1074 |
|
} |
1075 |
|
|
1076 |
|
|
1077 |
< |
#ifdef _WIN32 |
1077 |
> |
#if defined(_WIN32) || defined(_WIN64) |
1078 |
|
static void |
1079 |
|
setenv( /* set an environment variable */ |
1080 |
|
char *vname, |
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"); |
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"); |
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; |