--- ray/src/common/paths.h 2016/03/07 01:15:01 2.28 +++ ray/src/common/paths.h 2023/04/07 19:06:18 2.31 @@ -1,4 +1,4 @@ -/* RCSid $Id: paths.h,v 2.28 2016/03/07 01:15:01 schorsch Exp $ */ +/* RCSid $Id: paths.h,v 2.31 2023/04/07 19:06:18 greg Exp $ */ /* * Definitions for paths on different machines */ @@ -23,7 +23,7 @@ /* The windows _popen with the native shell breaks '\\\n' escapes. * RT_WINPROC (used by SCons) enables our replacement functions to fix that. * XXX This should really not depend on the compiler used! */ - #if defined(_MSC_VER) && !defined(RT_WINPROC) + #if 1 /* defined(_MSC_VER) && !defined(RT_WINPROC) */ #define popen(cmd,mode) _popen(cmd,mode) #define pclose(p) _pclose(p) #else @@ -106,7 +106,7 @@ #define CURDIR '.' #define DEFAULT_TEMPDIRS {"/var/tmp", "/usr/tmp", "/tmp", ".", NULL} #define TEMPLATE "/tmp/rtXXXXXX" - #define TEMPLEN 17 + #define TEMPLEN 13 #define ULIBVAR "RAYPATH" #ifndef DEFPATH #define DEFPATH ":/usr/local/lib/ray" @@ -133,7 +133,7 @@ extern "C" { #if defined(_WIN32) || defined(_WIN64) extern FILE *win_popen(char *command, char *type); extern int win_pclose(FILE *p); - extern char *fixargv0(); + extern char *fixargv0(char *arg0); #endif /* Check if any of the characters in str2 are found in str1 */