ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/paths.h
(Generate patch)

Comparing ray/src/common/paths.h (file contents):
Revision 2.17 by schorsch, Thu Jul 3 22:41:44 2003 UTC vs.
Revision 2.19 by schorsch, Mon Jul 14 22:23:59 2003 UTC

# Line 4 | Line 4
4   */
5   #ifndef _RAD_PATHS_H_
6   #define _RAD_PATHS_H_
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
7  
8   #include <stdio.h>
9   #include <stdlib.h>
# Line 17 | Line 14 | extern "C" {
14  
15   #ifdef _WIN32
16    #include <io.h>
17 +  #include <direct.h> /* getcwd(), chdir(), etc. */
18  
19    #define access _access
20    #define PATH_MAX _MAX_PATH
# Line 50 | Line 48 | extern "C" {
48      #define S_IRUSR _S_IREAD
49      #define S_IWUSR _S_IWRITE
50    #endif
53 extern char  *fixargv0();
51  
52 +  #ifdef __cplusplus
53 +    extern "C" {
54 +  #endif
55 +  extern char  *fixargv0();
56 +  #ifdef __cplusplus
57 +    }
58 +  #endif
59 +
60   #else /* everything but Windows */
61    #include <unistd.h>
62    #include <sys/param.h>
# Line 108 | Line 113 | extern char  *fixargv0();
113    #define CASEDIRSEP    case DIRSEP
114   #endif
115  
116 + #ifdef __cplusplus
117 + extern "C" {
118 + #endif
119  
120   /* Find a writeable directory for temporary files */
121   /* If s is NULL, we return a static string */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines