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> |
48 |
|
#define S_IRUSR _S_IREAD |
49 |
|
#define S_IWUSR _S_IWRITE |
50 |
|
#endif |
54 |
– |
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> |
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 */ |