--- ray/src/common/paths.h 1993/07/21 10:00:57 2.7 +++ ray/src/common/paths.h 2003/06/05 19:29:34 2.11 @@ -1,13 +1,12 @@ -/* Copyright (c) 1992 Regents of the University of California */ - -/* SCCSid "$SunId$ LBL" */ - +/* RCSid $Id: paths.h,v 2.11 2003/06/05 19:29:34 schorsch Exp $ */ /* * Definitions for paths on different machines */ -#ifdef MSDOS +#include "copyright.h" +#ifdef _WIN32 + #define DIRSEP '/' #define ISDIRSEP(c) ((c)=='/' || (c)=='\\') #define CASEDIRSEP case '/': case '\\' @@ -59,3 +58,10 @@ extern char *fixargv0(); #endif extern char *mktemp(), *getenv(); + +#ifdef BSD +extern char *getwd(); +#else +extern char *getcwd(); +#define getwd(p) getcwd(p, sizeof(p)) +#endif