2 |
|
/* |
3 |
|
* platform.h - header file for platform specific definitions |
4 |
|
*/ |
5 |
– |
|
6 |
– |
#include "copyright.h" |
7 |
– |
|
8 |
– |
|
5 |
|
#ifndef _RAD_PLATFORM_H_ |
6 |
|
#define _RAD_PLATFORM_H_ |
7 |
+ |
#ifdef __cplusplus |
8 |
+ |
extern "C" { |
9 |
+ |
#endif |
10 |
|
|
12 |
– |
|
11 |
|
#ifdef _WIN32 |
12 |
|
|
13 |
< |
#include <stdio.h> /* fileno() */ |
13 |
> |
#include <stdio.h> |
14 |
> |
#define popen _popen |
15 |
> |
#define pclose _pclose |
16 |
|
#include <fcntl.h> /* _O_BINARY, _O_TEXT */ |
17 |
|
#include <io.h> /* _setmode() */ |
18 |
|
#include <stdlib.h> /* _fmode */ |
42 |
|
|
43 |
|
#endif /* _WIN32 */ |
44 |
|
|
45 |
+ |
|
46 |
+ |
#ifdef __cplusplus |
47 |
+ |
} |
48 |
+ |
#endif |
49 |
|
#endif /* _RAD_PLATFORM_H_ */ |
50 |
|
|