--- ray/src/common/paths.h 1993/07/21 10:00:57 2.7 +++ ray/src/common/paths.h 2003/06/06 16:38:47 2.12 @@ -1,13 +1,17 @@ -/* Copyright (c) 1992 Regents of the University of California */ - -/* SCCSid "$SunId$ LBL" */ - +/* RCSid $Id: paths.h,v 2.12 2003/06/06 16:38:47 schorsch Exp $ */ /* * Definitions for paths on different machines */ +#ifndef _RAD_PATHS_H_ +#define _RAD_PATHS_H_ +#ifdef __cplusplus +extern "C" { +#endif -#ifdef MSDOS +#include "copyright.h" +#ifdef _WIN32 + #define DIRSEP '/' #define ISDIRSEP(c) ((c)=='/' || (c)=='\\') #define CASEDIRSEP case '/': case '\\' @@ -59,3 +63,17 @@ 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 + + +#ifdef __cplusplus +} +#endif +#endif /* _RAD_PATHS_H_ */ +