| 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 |
|
|
| 11 |
+ |
#include "copyright.h" |
| 12 |
|
|
| 13 |
|
#ifdef _WIN32 |
| 14 |
|
|
| 15 |
< |
#include <stdio.h> /* fileno() */ |
| 15 |
> |
#include <stdio.h> |
| 16 |
> |
#define popen _popen |
| 17 |
> |
#define pclose _pclose |
| 18 |
|
#include <fcntl.h> /* _O_BINARY, _O_TEXT */ |
| 19 |
|
#include <io.h> /* _setmode() */ |
| 20 |
|
#include <stdlib.h> /* _fmode */ |
| 44 |
|
|
| 45 |
|
#endif /* _WIN32 */ |
| 46 |
|
|
| 47 |
+ |
|
| 48 |
+ |
#ifdef __cplusplus |
| 49 |
+ |
} |
| 50 |
+ |
#endif |
| 51 |
|
#endif /* _RAD_PLATFORM_H_ */ |
| 52 |
|
|